Debug workflow branches

This commit is contained in:
Lauri Räsänen 2024-04-27 16:15:32 +03:00
parent daecab21db
commit 8c388bc8b6

View file

@ -36,6 +36,16 @@ BRANCHES=(
ROOT=$(pwd) ROOT=$(pwd)
HL2SDK="$ROOT/include/hl2sdk" 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 # make sure build dir exists
if [ -d "bin" ] if [ -d "bin" ]
then then
@ -46,9 +56,6 @@ mkdir bin
for BRANCH in "${BRANCHES[@]}" for BRANCH in "${BRANCHES[@]}"
do do
cd "$HL2SDK" cd "$HL2SDK"
git fetch --all
echo "Available branches:"
echo "$(git branch --all)"
git checkout "$BRANCH" git checkout "$BRANCH"
git pull git pull
cd "$ROOT" cd "$ROOT"