From 1f9d2af08effefbf13de6607272ee2dfcfb23227 Mon Sep 17 00:00:00 2001 From: s3krit Date: Mon, 24 Feb 2020 13:43:15 +0100 Subject: [PATCH] CI: fix bad URL in publish_draft_release.sh (#858) --- polkadot/scripts/gitlab/publish_draft_release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/polkadot/scripts/gitlab/publish_draft_release.sh b/polkadot/scripts/gitlab/publish_draft_release.sh index 0e9b004529..b8c4dedc4e 100755 --- a/polkadot/scripts/gitlab/publish_draft_release.sh +++ b/polkadot/scripts/gitlab/publish_draft_release.sh @@ -103,7 +103,7 @@ data=$(jq -Rs --arg version "$version" \ "prerelease": false }' < /dev/null) -out=$(curl -s -X POST --data "$data" -H "Authorization: token $GITHUB_RELEASE_TOKEN" "$api_base/releases") +out=$(curl -s -X POST --data "$data" -H "Authorization: token $GITHUB_RELEASE_TOKEN" "$api_base/paritytech/polkadot/releases") html_url=$(echo "$out" | jq -r .html_url) @@ -111,6 +111,8 @@ if [ "$html_url" == "null" ] then echo "[!] Something went wrong posting:" echo "$out" + # If we couldn't post, don't want to announce in Matrix + exit 1 else echo "[+] Release draft created: $html_url" fi