mirror of
https://github.com/kaboomserver/server.git
synced 2025-04-06 01:14:25 -04:00
commit
b6eb4f2143
3 changed files with 3 additions and 5 deletions
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"server.jar": {
|
||||
"type": "github",
|
||||
"repo": "vectrix-space/ignite",
|
||||
"asset": "ignite\\.jar"
|
||||
"asset": "ignite[.]jar"
|
||||
},
|
||||
"paper.jar": {
|
||||
"type": "bibliothek",
|
||||
|
|
Loading…
Add table
Reference in a new issue