From 54918d74ba5ee74eae8ea409945ed22f2d754d91 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Fri, 15 Nov 2024 11:49:03 -0500 Subject: [PATCH] [ghactions] For pull_request events use target branch name in the triqs clone command --- .github/workflows/build.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 781fb03c..09e59eb5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -108,8 +108,9 @@ jobs: env: CC: ${{ matrix.cc }} CXX: ${{ matrix.cxx }} + TRIQS_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }} run: | - git clone https://github.com/TRIQS/triqs --branch ${{ github.ref_name }} + git clone https://github.com/TRIQS/triqs --branch $TRIQS_BRANCH mkdir triqs/build && cd triqs/build cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install make -j1 install VERBOSE=1