ci: log orca webhook response so the step isnt silent on success
Some checks failed
CI / Format (push) Successful in 5s
CI / Clippy (push) Failing after 2s
CI / Security Audit (push) Successful in 1m52s
CI / Tests (push) Has been skipped
CI / Deploy (push) Has been skipped
CI / E2E Tests (push) Has been skipped

This commit is contained in:
Sharang Parnerkar
2026-04-08 15:09:01 +02:00
parent 24b604ce51
commit 58428892a8

View File

@@ -283,7 +283,9 @@ jobs:
run: | run: |
PAYLOAD=$(printf '{"ref":"refs/heads/main","repository":{"full_name":"sharang/certifai"},"head_commit":{"id":"%s","message":"CI deploy"}}' "${GITHUB_SHA}") PAYLOAD=$(printf '{"ref":"refs/heads/main","repository":{"full_name":"sharang/certifai"},"head_commit":{"id":"%s","message":"CI deploy"}}' "${GITHUB_SHA}")
SIG=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.ORCA_WEBHOOK_SECRET }}" | awk '{print $2}') SIG=$(printf '%s' "$PAYLOAD" | openssl dgst -sha256 -hmac "${{ secrets.ORCA_WEBHOOK_SECRET }}" | awk '{print $2}')
curl -fsS -X POST "http://46.225.100.82:6880/api/v1/webhooks/github" \ echo "Calling orca webhook for sharang/certifai@${GITHUB_SHA}"
RESP=$(curl -fsS -w "\nHTTP %{http_code}" -X POST "http://46.225.100.82:6880/api/v1/webhooks/github" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
-H "X-Hub-Signature-256: sha256=$SIG" \ -H "X-Hub-Signature-256: sha256=$SIG" \
-d "$PAYLOAD" -d "$PAYLOAD")
echo "$RESP"