upload-asset script: Change release name

This commit is contained in:
Danilo Bargen 2022-01-01 14:43:58 +01:00
commit 8228d31451

View file

@ -29,7 +29,7 @@ create_release() {
--header "Authorization: Bearer $token" \ --header "Authorization: Bearer $token" \
--header "Content-Type:application/json" \ --header "Content-Type:application/json" \
"https://api.github.com/repos/$repo/releases" \ "https://api.github.com/repos/$repo/releases" \
-d '{"tag_name":"'"$tag"'","name":"'"${tag/v/Release }"'","draft":true,"body":"'"${description/\"/\\\"}"'"}' -d '{"tag_name":"'"$tag"'","name":"'"${tag/v/Version }"'","draft":true,"body":"'"${description/\"/\\\"}"'"}'
) )
if [ "$http_code" == "201" ]; then if [ "$http_code" == "201" ]; then
echo "Release for tag $tag created." echo "Release for tag $tag created."