From 3f7ba2bc7fce0abfd0a27398669d0569270c3a64 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 8 May 2025 15:17:22 +0100 Subject: [PATCH] ci: debugging3 --- .forgejo/workflows/geyser.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml index 994d21e..baaab45 100644 --- a/.forgejo/workflows/geyser.yml +++ b/.forgejo/workflows/geyser.yml @@ -27,13 +27,15 @@ jobs: branches=() eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)" 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 nix run .#update_plugin -- update geyser # these will only succeed if there are changes git add --all - git commit -m "Updated geyser for $branch" + git commit -m "Updated geyser for $branch_local" git push done # - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5