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

Fix api push, again, again (#78)

This commit is contained in:
MC_XiaoHei
2023-07-30 19:02:57 +08:00
committed by GitHub
parent 729b0554e1
commit 769b2d8b05

View File

@@ -24,23 +24,7 @@ jar_name="leaves-$mcversion.jar"
jar_sha256=`sha256 $jar_name`
data=$(cat <<EOF
'{
"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"
}'
{"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"}
EOF
)