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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user