Update .github/workflows/webhook-caller.yml

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Powell 2025-07-11 11:51:17 +10:00 committed by GitHub
parent 4e89c1fab0
commit 52562b10d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,7 +31,7 @@ jobs:
idx=1
for url in "${URLS[@]}"; do
if [[ "$url" =~ ^https:// ]]; then
if ! curl -f --max-time 30 --retry 3 -X POST "$url"; then
if ! curl -f --max-time 30 --retry 3 --silent --show-error -X POST -H "User-Agent: webhook-caller" -H "Content-Type: application/json" "$url"; then
echo "Webhook call failed for URL '$url' at index $idx" >&2
fi
else