Experimental 1.21
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/manual/build/2 Pipeline was successful
ci/woodpecker/manual/build/1 Pipeline was successful
ci/woodpecker/manual/build/3 Pipeline was successful
All checks were successful
ci/woodpecker/push/build/2 Pipeline was successful
ci/woodpecker/push/build/1 Pipeline was successful
ci/woodpecker/push/build/3 Pipeline was successful
ci/woodpecker/manual/build/2 Pipeline was successful
ci/woodpecker/manual/build/1 Pipeline was successful
ci/woodpecker/manual/build/3 Pipeline was successful
This commit is contained in:
parent
a696be0b40
commit
9f8fd25bf2
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ matrix:
|
||||||
# - 1.20.2
|
# - 1.20.2
|
||||||
- 1.20.4
|
- 1.20.4
|
||||||
- 1.20.6
|
- 1.20.6
|
||||||
- 1.21.0
|
- 1.21
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
build:
|
build:
|
||||||
|
|
|
@ -5,7 +5,7 @@ set -euxo pipefail
|
||||||
Version=$1
|
Version=$1
|
||||||
BuildJSON=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" https://api.papermc.io/v2/projects/paper/versions/$Version/builds)
|
BuildJSON=$(curl -H "Accept-Encoding: identity" -H "Accept-Language: en" -L -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4.212 Safari/537.36" https://api.papermc.io/v2/projects/paper/versions/$Version/builds)
|
||||||
|
|
||||||
if [[ "${2:-}" == "--experimental" ]] ; then
|
if [[ "${1:-}" == "1.21" ]] ; then
|
||||||
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default" or .channel == "experimental")][-1].build')
|
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default" or .channel == "experimental")][-1].build')
|
||||||
else
|
else
|
||||||
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default")][-1].build')
|
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default")][-1].build')
|
||||||
|
|
Loading…
Add table
Reference in a new issue