From 8c388bc8b62d0b516976cce7cb7022ac0baea21b Mon Sep 17 00:00:00 2001 From: nullprop Date: Sat, 27 Apr 2024 16:15:32 +0300 Subject: [PATCH] Debug workflow branches --- build-matrix.sh | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/build-matrix.sh b/build-matrix.sh index 8cc1665..52ecb53 100755 --- a/build-matrix.sh +++ b/build-matrix.sh @@ -36,6 +36,16 @@ BRANCHES=( ROOT=$(pwd) HL2SDK="$ROOT/include/hl2sdk" +# --depth=1 in workflow runners +if [ "$CI" = "true" ] +then + cd "$HL2SDK" + git remote set-branches origin '*' + git fetch --all + echo "Available branches:" + echo "$(git branch --all)" +fi + # make sure build dir exists if [ -d "bin" ] then @@ -46,9 +56,6 @@ mkdir bin for BRANCH in "${BRANCHES[@]}" do cd "$HL2SDK" - git fetch --all - echo "Available branches:" - echo "$(git branch --all)" git checkout "$BRANCH" git pull cd "$ROOT"