ci: log orca webhook response so the step isnt silent on success
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user