diff --git a/.github/workflows/gchat-notification.yml b/.github/workflows/gchat-notification.yml index 22b2681832..3f06251b74 100644 --- a/.github/workflows/gchat-notification.yml +++ b/.github/workflows/gchat-notification.yml @@ -39,4 +39,4 @@ jobs: # Use curl to send the JSON to Google. escapedText=$(sed -e 's/\n/\\n/g' -e 's/"/\\"/g' -e "s/'/\\'/g" "${tmp_file}") json="{\"text\": \"$escapedText\"}" - curl -X POST -H 'Content-Type: application/json' -d "$json" "${GCHAT_WEBHOOK_URL}" + curl -o /tmp/out -s --fail -X POST -H 'Content-Type: application/json' -d "$json" "${GCHAT_WEBHOOK_URL}"