Skip to content

Commit

Permalink
chore: update trigger release script for HTTP 2
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jun 30, 2021
1 parent f91b9ea commit 7ddb76e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/trigger-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ output=$(curl -v https://api.github.com/repos/${repository_slug}/dispatches \
-H "Authorization: Bearer $GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES" \
-d "{\"event_type\": \"release-triggered\", \"client_payload\": {\"increment\": ${increment}}}" 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
Expand Down

0 comments on commit 7ddb76e

Please sign in to comment.