diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 29ed79f..d7c8566 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 diff --git a/scripts/_sources/_bibliothek.sh b/scripts/_sources/_bibliothek.sh index 20be5f1..a264829 100644 --- a/scripts/_sources/_bibliothek.sh +++ b/scripts/_sources/_bibliothek.sh @@ -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 } diff --git a/scripts/downloads.json b/scripts/downloads.json index a13976e..b6c45bd 100644 --- a/scripts/downloads.json +++ b/scripts/downloads.json @@ -2,7 +2,7 @@ "server.jar": { "type": "github", "repo": "vectrix-space/ignite", - "asset": "ignite\\.jar" + "asset": "ignite[.]jar" }, "paper.jar": { "type": "bibliothek",