test: see if skipping the head "branch" works

This commit is contained in:
silver 2025-08-05 23:09:45 +00:00
parent 3299103050
commit 08bd6b5aa0

View file

@ -38,6 +38,10 @@ jobs:
for branch in "${branches[@]}"; do
# for debugging
echo "$branch"
if [ "$branch" == "refs/remotes/origin/HEAD" ]; then
continue
fi
# need to convert "'refs/remotes/origin/main" to "main"
branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }')
git switch $branch_local