Skip to content

Commit

Permalink
Wait for the deployment to wake up
Browse files Browse the repository at this point in the history
  • Loading branch information
feluelle committed Oct 25, 2024
1 parent 9ca0699 commit 1c3fb15
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1c3fb15

Please sign in to comment.