ci: debugging7
This commit is contained in:
parent
7f78033810
commit
e5ed381c64
1 changed files with 2 additions and 2 deletions
|
@ -27,10 +27,10 @@ jobs:
|
|||
git fetch --all
|
||||
git pull --all
|
||||
branches=()
|
||||
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)"
|
||||
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/remotes/origin/)"
|
||||
for branch in "${branches[@]}"; do
|
||||
# need to convert "refs/heads/main" to "main"
|
||||
branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $3 }')
|
||||
branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }')
|
||||
echo $branch_local
|
||||
#git switch $branch_local
|
||||
#git status
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue