Skip to content

Commit

Permalink
chore: update release script [ci-skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Jan 28, 2021
1 parent b67f3d6 commit f6e0511
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 @@ -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
Expand Down

0 comments on commit f6e0511

Please sign in to comment.