From cd40bc75d9b60acede4fc519f3f8f66ad8f560c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Falc=C3=B3n?= Date: Tue, 17 Mar 2026 09:57:38 +0000 Subject: [PATCH] fix(ci): allow deploy retry loop to survive curl timeout (#233) ## Summary - Adds `|| true` after the `curl` command so `bash -e` does not kill the script on curl exit code 28 (timeout) before the retry loop can continue - Guards the HTTP status integer comparison against an empty value, which occurs when curl times out and produces no output --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6a3aa7ca..2f2676bc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -284,15 +284,15 @@ jobs: --connect-timeout 30 \ --max-time 120 \ -H "Authorization: Bearer ${{ secrets.DEPLOYMENT_TOKEN }}" \ - "http://147.93.126.54:8000/api/v1/deploy?uuid=ww00sswosco8w80k08c0occ8&force=false") + "http://147.93.126.54:8000/api/v1/deploy?uuid=ww00sswosco8w80k08c0occ8&force=false") || true http_code=$(echo "$response" | tail -n1) body=$(echo "$response" | sed '$d') echo "Response: $body" - echo "HTTP Status: $http_code" + echo "HTTP Status: ${http_code:-timeout}" - if [ "$http_code" -ge 200 ] && [ "$http_code" -lt 300 ]; then + if [ -n "$http_code" ] && [ "$http_code" -ge 200 ] && [ "$http_code" -lt 300 ]; then echo "Deployment triggered successfully!" exit 0 fi