ci: more testing tos ee if I can make this action mroe generic

also usign old geyser for testing
This commit is contained in:
silver 2025-05-08 14:59:39 +01:00
parent 2932232f14
commit 407576de60
Signed by: silver
GPG key ID: 36F93D61BAD3FD7D
2 changed files with 25 additions and 20 deletions

View file

@ -5,18 +5,6 @@ on:
jobs:
update:
concurrency:
group: "update_geyser"
cancel-in-progress: true
strategy:
max-parallel: 1
matrix:
branch:
- main
- skynet
- anime_manga
- games
runs-on: nix
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
@ -26,10 +14,27 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: ${{ matrix.branch }}
fetch-depth: 0
token: ${{ secrets.PIPELINE_TOKEN }}
- run: nix run .#update_plugin -- update geyser
- name: setup git config
run: |
# setup the username and email. I tend to use 'GitHub Actions Bot' with no email by default
git config user.name "Skynet"
git config user.email "<>"
- name: Update each branch
shell: bash
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Updated geyser for ${{ matrix.branch }}"
run: |
branches=()
eval "$(git for-each-ref --shell --format='branches+=(%(refname))' refs/heads/)"
for branch in "${branches[@]}"; do
git checkout $branch
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 push
done
# - uses: https://github.com/stefanzweifel/git-auto-commit-action@v5
# with:
# commit_message: "Updated geyser for ${{ matrix.branch }}"