mirror of
https://github.com/kaboomserver/server.git
synced 2025-07-30 17:51:40 +00: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:
|
jobs:
|
||||||
update:
|
update:
|
||||||
if: github.repository == 'kaboomserver/server' || github.event_name == 'workflow_dispatch'
|
if: github.repository == 'kaboomserver/server' || github.event_name == 'workflow_dispatch'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-24.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
|
@ -4,16 +4,14 @@
|
||||||
|
|
||||||
_fetch_latest_build() {
|
_fetch_latest_build() {
|
||||||
builds_url="$1/builds"
|
builds_url="$1/builds"
|
||||||
|
|
||||||
debug "fetch: $builds_url"
|
debug "fetch: $builds_url"
|
||||||
BUILD_JSON="$(fetch -so- "$builds_url")"
|
|
||||||
|
|
||||||
# We have to read the variables like this because POSIX read
|
# We have to read the variables like this because POSIX read
|
||||||
# doesn't support reading multiple variables at a time
|
# doesn't support reading multiple variables at a time
|
||||||
for var in LATEST_BUILD LATEST_BUILD_FILENAME; do
|
for var in LATEST_BUILD LATEST_BUILD_FILENAME; do
|
||||||
read -r "${var?}"
|
read -r "${var?}"
|
||||||
done <<FETCH_LATEST_BUILD_HEREDOC
|
done <<FETCH_LATEST_BUILD_HEREDOC
|
||||||
$(echo "$BUILD_JSON" \
|
$(fetch -so- "$builds_url" \
|
||||||
| jq --raw-output --exit-status '.builds[-1] | "\(.build)\n\(.downloads?.application?.name)"')
|
| jq --raw-output --exit-status '.builds[-1] | "\(.build)\n\(.downloads?.application?.name)"')
|
||||||
FETCH_LATEST_BUILD_HEREDOC
|
FETCH_LATEST_BUILD_HEREDOC
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"server.jar": {
|
"server.jar": {
|
||||||
"type": "github",
|
"type": "github",
|
||||||
"repo": "vectrix-space/ignite",
|
"repo": "vectrix-space/ignite",
|
||||||
"asset": "ignite\\.jar"
|
"asset": "ignite[.]jar"
|
||||||
},
|
},
|
||||||
"paper.jar": {
|
"paper.jar": {
|
||||||
"type": "bibliothek",
|
"type": "bibliothek",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue