From f6e05114991179083a2382106071cf4d718497b9 Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 29 Jan 2021 10:03:08 +1100 Subject: [PATCH] chore: update release script [ci-skip] --- script/trigger-release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/trigger-release.sh b/script/trigger-release.sh index f46344b..6eae89f 100755 --- a/script/trigger-release.sh +++ b/script/trigger-release.sh @@ -18,7 +18,7 @@ output=$(curl -v https://api.github.com/repos/${repository_slug}/dispatches \ -H "Authorization: Bearer $GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES" \ -d "{\"event_type\": \"manual-release-triggered\", \"client_payload\": { \"tag\": ${tag} } }" 2>&1) -if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then +if ! echo "${output}" | grep "HTTP\/.* 204" > /dev/null; then echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES}/********/g" echo "Failed to trigger release" exit 1