From c73e874fc48c4b17e432a7a64b7c18e6a1ade4d4 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 8 May 2025 15:28:03 +0100 Subject: [PATCH] ci: this should update every branch, even future ones --- .forgejo/workflows/geyser.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml index 72f8369..fd303c4 100644 --- a/.forgejo/workflows/geyser.yml +++ b/.forgejo/workflows/geyser.yml @@ -24,22 +24,19 @@ jobs: - name: Update each branch shell: bash run: | - git fetch --all - git pull --all branches=() 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" + # need to convert "'refs/remotes/origin/main" to "main" branch_local=$(echo "$branch" | awk -F'[\\\\/]' ' { print $4 }') - echo $branch_local - #git switch $branch_local - #git status - #nix run .#update_plugin -- update geyser + 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_local" - #git push + git add --all + git commit -m "Updated geyser for $branch_local" + git push done # - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 # with: