Skip to content

Commit b8b3d2e

Browse files
committed
Changing the log messages
1 parent dfe9090 commit b8b3d2e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/webhook-caller.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828
run: |
2929
if [ -n "$WEBHOOK_URLS" ]; then
3030
IFS=',' read -ra URLS <<< "$WEBHOOK_URLS"
31+
idx=1
3132
for url in "${URLS[@]}"; do
3233
if [[ "$url" =~ ^https:// ]]; then
3334
if ! curl -f --max-time 30 --retry 3 -X POST "$url"; then
34-
echo "Webhook call failed for: $url" >&2
35-
echo "Skipping invalid webhook URL (must start with https://): $url" >&2
36-
exit 1
35+
echo "Webhook call failed on url $idx" >&2
36+
fi
3737
else
38-
echo "Skipping invalid webhook URL (must start with https://): $url" >&2
38+
echo "Skipping invalid webhook URL (must start with https://): failed on url $idx" >&2
3939
fi
40+
idx=$((idx+1))
4041
done
4142
else
4243
echo "No webhooks to call."

0 commit comments

Comments
 (0)