Merge pull request from amyavi/master

CI fixes
This commit is contained in:
Kaboom 2025-03-13 01:12:38 +02:00 committed by GitHub
commit b6eb4f2143
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions
.github/workflows
scripts

View file

@ -10,7 +10,7 @@ permissions:
jobs:
update:
if: github.repository == 'kaboomserver/server' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3

View file

@ -4,16 +4,14 @@
_fetch_latest_build() {
builds_url="$1/builds"
debug "fetch: $builds_url"
BUILD_JSON="$(fetch -so- "$builds_url")"
# We have to read the variables like this because POSIX read
# doesn't support reading multiple variables at a time
for var in LATEST_BUILD LATEST_BUILD_FILENAME; do
read -r "${var?}"
done <<FETCH_LATEST_BUILD_HEREDOC
$(echo "$BUILD_JSON" \
$(fetch -so- "$builds_url" \
| jq --raw-output --exit-status '.builds[-1] | "\(.build)\n\(.downloads?.application?.name)"')
FETCH_LATEST_BUILD_HEREDOC
}

View file

@ -2,7 +2,7 @@
"server.jar": {
"type": "github",
"repo": "vectrix-space/ignite",
"asset": "ignite\\.jar"
"asset": "ignite[.]jar"
},
"paper.jar": {
"type": "bibliothek",