Skip to content

Commit e630493

Browse files
committed
Display curl exit code
1 parent 7abb716 commit e630493

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

entrypoint.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,16 +143,16 @@ response=$(curl $options \
143143
-H "X-GitHub-Event: $EVENT_NAME" \
144144
--data "$WEBHOOK_DATA" $WEBHOOK_ENDPOINT)
145145

146-
STATUS=$?
146+
CURL_STATUS=$?
147147

148148
# echo "response-body=$response" >> $GITHUB_OUTPUT
149149
echo "response-body<<$REQUEST_ID" >> $GITHUB_OUTPUT
150150
echo "$response" >> $GITHUB_OUTPUT
151151
echo "$REQUEST_ID" >> $GITHUB_OUTPUT
152152

153153
if [ "$verbose" = true ]; then
154-
echo "Webhook Response:"
154+
echo "Webhook Response [$CURL_STATUS]:"
155155
echo "${response}"
156156
fi
157157

158-
exit $STATUS
158+
exit $CURL_STATUS

0 commit comments

Comments
 (0)