9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-27 10:59:17 +00:00

[ci skip]Fix build (#255)

This commit is contained in:
LittleChest
2024-07-12 17:07:10 +08:00
committed by GitHub
parent de20987637
commit c6180269ae
2 changed files with 1 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ prop() {
grep "${1}" gradle.properties | cut -d'=' -f2 | sed 's/\r//'
}
latest_build=$(curl -s -L "https://api.leavesmc.org/projects/leaves/versions/$(prop mcVersion)/latestGroupBuildId")
latest_build=$(curl -s -L "https://api.leavesmc.org/v2/projects/leaves/versions/$(prop mcVersion)/latestGroupBuildId")
if [[ $latest_build =~ ^[0-9]+$ ]]; then
echo "BUILD_NUMBER=$((latest_build + 1))" >> "$GITHUB_ENV"