Fix escaping of variable when creating new release
This commit is contained in:
parent
39e57b522a
commit
220cc8ab15
@ -81,7 +81,7 @@ runs:
|
||||
# If release does not exist, create it
|
||||
if [[ "$should_create" == "true" ]]; then
|
||||
echo "Tag does not have corresponding release, creating release for tag: $tag..."
|
||||
response=$(curl -X POST -sH "$AUTH" -H "Content-Type: application/json" "${GH_REPO}/releases" -d '{"tag_name":"$tag","name":"Coqui STT $tag","prerelease":true}')
|
||||
response=$(curl -X POST -sH "$AUTH" -H "Content-Type: application/json" "${GH_REPO}/releases" -d '{"tag_name":"'"$tag"'","name":"Coqui STT '"$tag"'","prerelease":true}')
|
||||
eval $(echo "$response" | grep -m 1 "id.:" | grep -w id | tr : = | tr -cd '[[:alnum:]]=')
|
||||
[ "$id" ] || {
|
||||
echo "Error: Could not create release for tag: $tag"
|
||||
|
Loading…
Reference in New Issue
Block a user