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

ci: fix action: push to api (#81)

This commit is contained in:
Bluemangoo
2023-07-30 22:04:04 +08:00
committed by GitHub
parent 0853f0ef17
commit 062e73e460

View File

@@ -23,4 +23,4 @@ changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed 's/\\n/\\\\n/g')
jar_name="leaves-$mcversion.jar"
jar_sha256=`sha256 $jar_name`
curl --location --request POST "https://api.leavesmc.top/new_release" --header "Content-Type: application/json" --data-raw "{'project_id':'$project_id','project_name':'$project_name','version':'$mcversion','time':'$ctime','channel':'$channel','promoted':$promoted,'changes':'$changes','downloads':{'application':{'name':'$jar_name','sha256':'$jar_sha256','url':'https://github.com/LeavesMC/Leaves/releases/download/$tag/$jar_name'}},'secret':'$secret'}"
curl --location --request POST "https://api.leavesmc.top/new_release" --header "Content-Type: application/json" --data-raw "{\"project_id\":\"$project_id\",\"project_name\":\"$project_name\",\"version\":\"$mcversion\",\"time\":\"$ctime\",\"channel\":\"$channel\",\"promoted\":$promoted,\"changes\":\"$changes\",\"downloads\":{\"application\":{\"name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"url\":\"https://github.com/LeavesMC/Leaves/releases/download/$tag/$jar_name\"}},\"secret\":\"$secret\"}"