File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 70
70
71
71
echo " Content Type: $CONTENT_TYPE "
72
72
73
- curl -k -v \
73
+ curl -k -v --fail \
74
74
-H " Content-Type: $CONTENT_TYPE " \
75
75
-H " User-Agent: User-Agent: GitHub-Hookshot/760256b" \
76
76
-H " X-Hub-Signature: sha1=$WEBHOOK_SIGNATURE " \
77
77
-H " X-GitHub-Delivery: $GITHUB_RUN_NUMBER " \
78
78
-H " X-GitHub-Event: $GITHUB_EVENT_NAME " \
79
79
--data " $WEBHOOK_DATA " $WEBHOOK_ENDPOINT
80
80
81
+ # Curl error options ...
82
+ # --silent hides the progress and error
83
+ # --show-error shows the error message hidden by --silent
84
+ # --fail returns an exit code > 0 when the request fails
85
+
81
86
# wget -q --server-response --timeout=2000 -O - \
82
87
# --header="Content-Type: application/json" \
83
88
# --header="User-Agent: User-Agent: GitHub-Hookshot/760256b" \
You can’t perform that action at this time.
0 commit comments