Commit Graph
1 Commits
Author SHA1 Message Date
g-butandClaude Opus 4.7 8faa4e2e6a ci: GitHub Actions watches Vercel deploy on push to main
Pair to the local scripts/wait-for-vercel.sh (154c354). When a deploy
fails in production (CRON_SECRET whitespace last incident, build break,
runtime config drift), the workflow turns the commit's check red so the
failure is visible in the GitHub UI without anyone having to invoke the
local script.

Mechanism:
  - Triggers on push to main, runs in parallel with the existing
    ci.yml tsc+lint job.
  - Polls https://api.vercel.com/v6/deployments?projectId=… via
    Authorization: Bearer $VERCEL_TOKEN; matches deployment by
    github.sha so it waits past any stale "previous deploy" reading
    in the first ~30s after push.
  - 480s deadline (Vercel typically 60-120s build). Exits 0 on READY,
    1 on ERROR|CANCELED, 2 on timeout.
  - Skips gracefully when VERCEL_TOKEN / VERCEL_PROJECT_ID secrets
    are not configured — never breaks CI for unconfigured repos.

One-time setup (documented in the workflow header):
  Settings → Secrets → add VERCEL_TOKEN, VERCEL_PROJECT_ID, VERCEL_ORG_ID.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 02:14:02 +02:00