Skip to content

Commit 13d975b

Browse files
committed
[ghactions] For pull_request events use target branch name in the triqs clone command
1 parent f695c55 commit 13d975b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@ jobs:
103103
env:
104104
CC: ${{ matrix.cc }}
105105
CXX: ${{ matrix.cxx }}
106+
TRIQS_BRANCH: ${{ github.event_name == 'pull_request' && github.base_ref || github.ref_name }}
106107
run: |
107-
git clone https://github.com/TRIQS/triqs --branch unstable
108+
git clone https://github.com/TRIQS/triqs --branch $TRIQS_BRANCH
108109
mkdir triqs/build && cd triqs/build
109110
cmake .. -DBuild_Tests=OFF -DCMAKE_INSTALL_PREFIX=$HOME/install
110111
make -j1 install VERBOSE=1

0 commit comments

Comments
 (0)