ci: debugging7

This commit is contained in:
silver 2025-05-08 15:26:50 +01:00
parent 7f78033810
commit e5ed381c64
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -27,10 +27,10 @@ jobs:
git fetch --all git fetch --all
git pull --all git pull --all
branches=() 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 for branch in "${branches[@]}"; do
# need to convert "refs/heads/main" to "main" # 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 echo $branch_local
#git switch $branch_local #git switch $branch_local
#git status #git status