Skip to content

Commit

Permalink
#150 wait for Pantheon deployment (#395)
Browse files Browse the repository at this point in the history
* #150 wait for Pantheon deployment

* Use terminus to get the deployment state is better

* Fix syntax https://docs.pantheon.io/terminus/commands/workflow-wait

* Try different env_id

* Update scaffold/github/actions/pantheon/review/action.yml

---------

Co-authored-by: Sally Young <[email protected]>
  • Loading branch information
beto-aveiga and justafish authored Feb 15, 2024
1 parent 2e90fcc commit b971ae6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scaffold/github/actions/pantheon/review/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ runs:
- name: Deploy to Pantheon
run: |
source .github/actions/drainpipe/set-env/bash_aliases
# Wait for Pantheon to sync.
sleep 30
drainpipe_exec "terminus workflow:wait ${{ inputs.site-name }}.pr-$DRAINPIPE_PR_NUMBER"
drainpipe_exec "terminus aliases --only ${{ inputs.site-name }} --yes"
if [ "${{ inputs.run-installer }}" == "true" ]; then
drainpipe_exec "./vendor/bin/drush @${{ inputs.site-name }}.pr-$DRAINPIPE_PR_NUMBER --yes site:install --existing-config"
Expand Down

0 comments on commit b971ae6

Please sign in to comment.