9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-19 14:59:32 +00:00

Fix api changes

This commit is contained in:
violetc
2023-07-30 12:03:09 +08:00
parent 6e60c4c69e
commit a997e94edb

View File

@@ -19,7 +19,7 @@ fi
promoted=false
number=$(git log --oneline master ^`git describe --tags --abbrev=0` | wc -l)
changes=$(echo "(git log --pretty='%H<<<%s>>>' -number)" | sed 's/\\n/\\\\n/g')
changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed 's/\\n/\\\\n/g')
jar_name="leaves-$mcversion.jar"
jar_sha256=`sha256 $jar_name`
@@ -44,4 +44,6 @@ data=$(cat <<EOF
EOF
)
curl -X POST -H "Content-Type: application/json" -d "$data" https://api.leavesmc.top/new_release
echo $data >> "a.json"
# curl -X POST -H "Content-Type: application/json" -d "$data" https://api.leavesmc.top/new_release