Skip to content

Commit c59b7a5

Browse files
committed
ci: surface Coolify webhook response body on deploy failure
1 parent 20cc85f commit c59b7a5

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ jobs:
130130
echo "WEBHOOK_URL / WEBHOOK_TOKEN secrets are not set; skipping deploy."
131131
exit 0
132132
fi
133-
curl --fail --show-error --silent \
133+
response="$(mktemp)"
134+
code="$(curl --silent --show-error --output "$response" --write-out '%{http_code}' \
134135
--request GET "$WEBHOOK_URL" \
135-
--header "Authorization: Bearer $WEBHOOK_TOKEN"
136+
--header "Authorization: Bearer $WEBHOOK_TOKEN")"
137+
echo "HTTP $code"
138+
cat "$response"
139+
echo
140+
test "$code" -ge 200 -a "$code" -lt 300

0 commit comments

Comments
 (0)