Cleaning up log message
This commit is contained in:
parent
b8b3d2e933
commit
864ae299cc
4
.github/workflows/webhook-caller.yml
vendored
4
.github/workflows/webhook-caller.yml
vendored
@ -32,10 +32,10 @@ jobs:
|
|||||||
for url in "${URLS[@]}"; do
|
for url in "${URLS[@]}"; do
|
||||||
if [[ "$url" =~ ^https:// ]]; then
|
if [[ "$url" =~ ^https:// ]]; then
|
||||||
if ! curl -f --max-time 30 --retry 3 -X POST "$url"; then
|
if ! curl -f --max-time 30 --retry 3 -X POST "$url"; then
|
||||||
echo "Webhook call failed on url $idx" >&2
|
echo "Webhook call failed on url at index $idx" >&2
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Skipping invalid webhook URL (must start with https://): failed on url $idx" >&2
|
echo "Skipping invalid webhook URL (must start with https://): failed on url at index $idx" >&2
|
||||||
fi
|
fi
|
||||||
idx=$((idx+1))
|
idx=$((idx+1))
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user