From 1c3fb15162068d5a219cbb29cf2529f4c3b6746b Mon Sep 17 00:00:00 2001 From: Felix Uellendall Date: Fri, 25 Oct 2024 17:02:59 +0200 Subject: [PATCH] Wait for the deployment to wake up --- action.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 21f8651..2df74f2 100644 --- a/action.yaml +++ b/action.yaml @@ -478,8 +478,10 @@ runs: run: | echo ::group::Override to wake up the Deployment astro deployment wake-up ${{steps.deployment-preview.outputs.FINAL_DEPLOYMENT_ID}} --force - # Give it some time to wake up - sleep 60 + # Wait for the deployment to wake up + while [ "$(astro deployment inspect cm2ope6zv037201jc1tbgb1yt --clean-output --key metadata.status)" == "HIBERNATING" ] + sleep 5 + done echo ::endgroup:: shell: bash - name: DAG Deploy to Astro