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

This commit is contained in:
Ryan Voots 2024-06-24 07:31:26 -04:00
parent a696be0b40
commit 9f8fd25bf2
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ matrix:
# - 1.20.2
- 1.20.4
- 1.20.6
- 1.21.0
- 1.21
steps:
build:

View file

@ -5,7 +5,7 @@ set -euxo pipefail
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)
if [[ "${2:-}" == "--experimental" ]] ; then
if [[ "${1:-}" == "1.21" ]] ; then
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default" or .channel == "experimental")][-1].build')
else
Build=$(echo "$BuildJSON" | jq '[.builds[] | select(.channel == "default")][-1].build')