We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f701447 commit e763e58Copy full SHA for e763e58
script/trigger-release.sh
@@ -19,7 +19,7 @@ output=$(curl -v -X POST https://api.github.com/repos/${repository_slug}/dispatc
19
-H "Authorization: Bearer $GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES" \
20
-d "{\"event_type\": \"release-triggered\", \"client_payload\": {\"increment\": ${increment}}}" 2>&1)
21
22
-if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
+if ! echo "${output}" | grep "HTTP\/.* 204" > /dev/null; then
23
echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES}/********/g"
24
echo "Failed to trigger release"
25
exit 1
0 commit comments