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: jobs:
update: update:
concurrency:
group: "update_geyser"
cancel-in-progress: true
strategy:
max-parallel: 1
matrix:
branch:
- main
- skynet
- anime_manga
- games
runs-on: nix runs-on: nix
permissions: permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the # Give the default GITHUB_TOKEN write permission to commit and push the
@ -26,10 +14,27 @@ jobs:
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
ref: ${{ matrix.branch }} fetch-depth: 0
token: ${{ secrets.PIPELINE_TOKEN }} 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 shell: bash
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5 run: |
with: branches=()
commit_message: "Updated geyser for ${{ matrix.branch }}" 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 }}"

View file

@ -3,11 +3,11 @@ filename = "Geyser-Spigot.jar"
side = "server" side = "server"
[download] [download]
url = "https://cdn.modrinth.com/data/wKkoqHrH/versions/xIN8Ujrm/Geyser-Spigot.jar" url = "https://cdn.modrinth.com/data/wKkoqHrH/versions/EH2jBKvB/Geyser-Spigot.jar"
hash-format = "sha512" hash-format = "sha512"
hash = "6ac40376aa5603e1a8de7c4fe39fe4925c76e26b1a66a1a9db43995542195d620c7adf1079ba75c7205d9f62ab16f3897fca3da0c7fa6ad18fab63a6ac2a6304" hash = "a4004156cd6a73574cce153734566c6c63380f76bfc0982849a65741481143e147e20e03db957d4fc6670b57a541f6f9325287269f13a7225165540ad7d55690"
[update] [update]
[update.modrinth] [update.modrinth]
mod-id = "wKkoqHrH" mod-id = "wKkoqHrH"
version = "xIN8Ujrm" version = "EH2jBKvB"