Skip to content

Commit 4f98f4d

Browse files
authored
Fail CI builds if webhook for updating docs returns 4xx or 5xx (#2850)
1 parent 0a25a27 commit 4f98f4d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

upload_output.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,8 @@ aws s3 sync --acl public-read output/html/ru/_static $S3_PATH/$BRANCH/ru/_static
2424
aws s3 sync --acl public-read output/html/ru/_images $S3_PATH/$BRANCH/ru/_images --endpoint-url=$ENDPOINT_URL --delete --size-only
2525
aws s3 cp --acl public-read output/html/ru/singlehtml.html $S3_PATH/$BRANCH/ru/singlehtml.html --endpoint-url=$ENDPOINT_URL
2626

27-
curl --data '{"update_key":"'"$TARANTOOL_UPDATE_KEY"'"}' --header "Content-Type: application/json" --request POST "$TARANTOOL_UPDATE_URL""$BRANCH"/
27+
set -xe
28+
curl --fail --show-error \
29+
--data '{"update_key":"'"$TARANTOOL_UPDATE_KEY"'"}' \
30+
--header "Content-Type: application/json" \
31+
--request POST "$TARANTOOL_UPDATE_URL""$BRANCH"/

0 commit comments

Comments
 (0)