Debug workflow branches
This commit is contained in:
parent
daecab21db
commit
8c388bc8b6
1 changed files with 10 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue