From d896b72c185fd5b0414e8d1b0f0ac4d0754d47aa Mon Sep 17 00:00:00 2001 From: Martin Porwoll Date: Fri, 13 Feb 2026 22:31:23 +0000 Subject: [PATCH] fix(ci): accept 4xx from API health check (401 = running) API returns 401 without auth, which proves it's alive. Only 5xx indicates a real server failure. Co-Authored-By: Claude Opus 4.6 --- .github/workflows/deploy-production.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index f2ec688..8bcfdce 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -381,9 +381,9 @@ jobs: API_STATUS=$(curl -s -o /dev/null -w "%{http_code}" "${{ env.PRODUCTION_URL }}/api/users") echo "API: HTTP $API_STATUS" - # Summary + # Summary (API returns 401 without auth — that's expected and proves it's running) if [ "$ADMIN_STATUS" -ge 200 ] && [ "$ADMIN_STATUS" -lt 400 ] && \ - [ "$API_STATUS" -ge 200 ] && [ "$API_STATUS" -lt 400 ]; then + [ "$API_STATUS" -ge 200 ] && [ "$API_STATUS" -lt 500 ]; then echo "All health checks passed!" else echo "Some health checks failed"