From 407576de60ad1d16f94333dcaaa8260c37c13b44 Mon Sep 17 00:00:00 2001 From: Brendan Golden Date: Thu, 8 May 2025 14:59:39 +0100 Subject: [PATCH] ci: more testing tos ee if I can make this action mroe generic also usign old geyser for testing --- .forgejo/workflows/geyser.yml | 39 ++++++++++++++++++++--------------- plugins/geyser.pw.toml | 6 +++--- 2 files changed, 25 insertions(+), 20 deletions(-) diff --git a/.forgejo/workflows/geyser.yml b/.forgejo/workflows/geyser.yml index ee5318c..c557b3b 100644 --- a/.forgejo/workflows/geyser.yml +++ b/.forgejo/workflows/geyser.yml @@ -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 }}" \ No newline at end of file + 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 }}" \ No newline at end of file diff --git a/plugins/geyser.pw.toml b/plugins/geyser.pw.toml index ef58728..39e97b3 100644 --- a/plugins/geyser.pw.toml +++ b/plugins/geyser.pw.toml @@ -3,11 +3,11 @@ filename = "Geyser-Spigot.jar" side = "server" [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 = "6ac40376aa5603e1a8de7c4fe39fe4925c76e26b1a66a1a9db43995542195d620c7adf1079ba75c7205d9f62ab16f3897fca3da0c7fa6ad18fab63a6ac2a6304" +hash = "a4004156cd6a73574cce153734566c6c63380f76bfc0982849a65741481143e147e20e03db957d4fc6670b57a541f6f9325287269f13a7225165540ad7d55690" [update] [update.modrinth] mod-id = "wKkoqHrH" -version = "xIN8Ujrm" +version = "EH2jBKvB"