ci: debugging3

This commit is contained in:
silver 2025-05-08 15:17:22 +01:00
parent 6f3686a47e
commit 3f7ba2bc7f
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D

View file

@ -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