Skip to content

Commit e763e58

Browse files
committed
chore: handle http 2
1 parent f701447 commit e763e58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/trigger-release.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ output=$(curl -v -X POST https://api.github.com/repos/${repository_slug}/dispatc
1919
-H "Authorization: Bearer $GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES" \
2020
-d "{\"event_type\": \"release-triggered\", \"client_payload\": {\"increment\": ${increment}}}" 2>&1)
2121

22-
if ! echo "${output}" | grep "HTTP\/1.1 204" > /dev/null; then
22+
if ! echo "${output}" | grep "HTTP\/.* 204" > /dev/null; then
2323
echo "$output" | sed "s/${GITHUB_ACCESS_TOKEN_FOR_PF_RELEASES}/********/g"
2424
echo "Failed to trigger release"
2525
exit 1

0 commit comments

Comments
 (0)