test: see if skipping the head "branch" works
This commit is contained in:
parent
3299103050
commit
08bd6b5aa0
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue