From a7bf5708156a0beda9e63bb917d0f6a8c820ad3f Mon Sep 17 00:00:00 2001 From: Rodrigo Borba Date: Sun, 25 Jan 2026 14:17:08 -0300 Subject: [PATCH] =?UTF-8?q?fix:=20Aumenta=20o=20n=C3=BAmero=20de=20tentati?= =?UTF-8?q?vas=20e=20reduz=20os=20intervalos=20de=20espera=20para=20a=20ve?= =?UTF-8?q?rifica=C3=A7=C3=A3o=20de=20status=20do=20deploy=20no=20workflow?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy_check.yml | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/.github/workflows/deploy_check.yml b/.github/workflows/deploy_check.yml index 99d2375..b1b16e7 100755 --- a/.github/workflows/deploy_check.yml +++ b/.github/workflows/deploy_check.yml @@ -20,11 +20,10 @@ jobs: run: echo "https://chatwoot-pr-${{ github.event.pull_request.number }}.herokuapp.com" - name: Check Deployment Status run: | - max_attempts=10 + max_attempts=15 attempt=1 status_code=0 - echo "Waiting for review app to be deployed/redeployed, trying in 10 minutes..." - sleep 600 + echo "Checking review app status..." while [ $attempt -le $max_attempts ]; do response=$(curl -s -o /dev/null -w "%{http_code}" https://chatwoot-pr-${{ github.event.pull_request.number }}.herokuapp.com/api) status_code=$(echo $response | head -n 1) @@ -34,15 +33,15 @@ jobs: echo "Deployment successful" exit 0 else - echo "Deployment status unknown, retrying in 3 minutes..." - sleep 180 + echo "Deployment status healthy but services not ready, retrying in 30 seconds..." + sleep 30 fi else - echo "Waiting for review app to be ready, retrying in 3 minutes..." - sleep 180 + echo "Waiting for review app to be ready, retrying in 30 seconds... (Attempt $attempt/$max_attempts)" + sleep 30 attempt=$((attempt + 1)) fi done - echo "Deployment failed after $max_attempts attempts" + echo "Deployment check timed out after $max_attempts attempts" exit 1 fi