ci: debugging3
This commit is contained in:
parent
6f3686a47e
commit
3f7ba2bc7f
1 changed files with 4 additions and 2 deletions
|
@ -27,13 +27,15 @@ jobs:
|
||||||
branches=()
|
branches=()
|
||||||
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)"
|
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)"
|
||||||
for branch in "${branches[@]}"; do
|
for branch in "${branches[@]}"; do
|
||||||
git switch $branch
|
# need to convert "refs/heads/main" to "main"
|
||||||
|
branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $3 }')
|
||||||
|
git switch $branch_local
|
||||||
git status
|
git status
|
||||||
nix run .#update_plugin -- update geyser
|
nix run .#update_plugin -- update geyser
|
||||||
|
|
||||||
# these will only succeed if there are changes
|
# these will only succeed if there are changes
|
||||||
git add --all
|
git add --all
|
||||||
git commit -m "Updated geyser for $branch"
|
git commit -m "Updated geyser for $branch_local"
|
||||||
git push
|
git push
|
||||||
done
|
done
|
||||||
# - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
# - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue