ci: more testing tos ee if I can make this action mroe generic
also usign old geyser for testing
This commit is contained in:
parent
2932232f14
commit
407576de60
2 changed files with 25 additions and 20 deletions
|
@ -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 }}"
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue