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 d292e16
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,11 @@ 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 ${{steps.deployment-preview.outputs.FINAL_DEPLOYMENT_ID}} --clean-output --key metadata.status)" == "HIBERNATING" ]
do
sleep 5
done
echo ::endgroup::
shell: bash
- name: DAG Deploy to Astro
Expand Down

0 comments on commit d292e16

Please sign in to comment.