Skip to content

Commit

Permalink
Issue #616 - Fix Pantheon deploy error (#622)
Browse files Browse the repository at this point in the history
* Issue #616 - Fix Pantheon deploy error

This patch has been tested on multiple projects and does complete the deployment without failure

* Update tasks/drupal.yml

Co-authored-by: Christian López Espínola <[email protected]>

---------

Co-authored-by: Christian López Espínola <[email protected]>
  • Loading branch information
mrdavidburns and penyaskito authored Jul 24, 2024
1 parent d52e82c commit 825024f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tasks/drupal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ tasks:
- ./vendor/bin/drush {{.site}} --yes cache:rebuild
- ./vendor/bin/drush {{.site}} --yes deploy:hook
- |
if [[ $(./vendor/bin/drush {{.site}} config:status --format=json --state=Different) != '[]' ]]; then
# drush config:status --format=json is outputting notices in Pantheon even with the json format,
# so we need to tail the last line.
config_status_output=$(./vendor/bin/drush {{.site}} config:status --format=json --state=Different | tail -n1)
if [[ $config_status_output != '[]' ]]; then
echo "Config export does not match database."
./vendor/bin/drush {{.site}} config:status
exit 1;
Expand Down

0 comments on commit 825024f

Please sign in to comment.