From f290d58485cdaaf5b6ca930406c0471e5d3d0ae4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20N=C3=A1me=C5=A1n=C3=BD?= Date: Thu, 23 Oct 2025 20:59:16 +0200 Subject: [PATCH] Revert 401 and 403 healthcheck pass --- .github/workflows/health_monitor.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/health_monitor.yaml b/.github/workflows/health_monitor.yaml index 7962449..2b2e16f 100644 --- a/.github/workflows/health_monitor.yaml +++ b/.github/workflows/health_monitor.yaml @@ -35,14 +35,11 @@ jobs: total=$((total + 1)) echo "Testing: $url" - # Get HTTP status code - status=$(curl -sfLI --max-time 10 -o /dev/null -w "%{http_code}" "$url" 2>&1 || echo "000") - - # Accept 2xx, 3xx, 401, and 403 as healthy - if [[ "$status" =~ ^(2|3|401|403) ]]; then - echo "✅ OK (HTTP $status)" + # Simple curl check - fail if HTTP code >= 400 or connection fails + if curl -sfLI --max-time 10 "$url" >/dev/null 2>&1; then + echo "✅ OK" else - echo "❌ FAILED (HTTP $status)" + echo "❌ FAILED" failed=$((failed + 1)) fi echo ""