We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfe9090 commit b8b3d2eCopy full SHA for b8b3d2e
.github/workflows/webhook-caller.yml
@@ -28,15 +28,16 @@ jobs:
28
run: |
29
if [ -n "$WEBHOOK_URLS" ]; then
30
IFS=',' read -ra URLS <<< "$WEBHOOK_URLS"
31
+ idx=1
32
for url in "${URLS[@]}"; do
33
if [[ "$url" =~ ^https:// ]]; then
34
if ! curl -f --max-time 30 --retry 3 -X POST "$url"; then
- echo "Webhook call failed for: $url" >&2
35
- echo "Skipping invalid webhook URL (must start with https://): $url" >&2
36
- exit 1
+ echo "Webhook call failed on url $idx" >&2
+ fi
37
else
38
+ echo "Skipping invalid webhook URL (must start with https://): failed on url $idx" >&2
39
fi
40
+ idx=$((idx+1))
41
done
42
43
echo "No webhooks to call."
0 commit comments