From 54b9b1d15d87d96bdb986aa85db2385850715394 Mon Sep 17 00:00:00 2001 From: Vishal Khode Date: Sat, 30 Nov 2024 01:40:04 +0530 Subject: [PATCH] Update shell script. --- .github/workflows/deployment.workflow.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.workflow.yml b/.github/workflows/deployment.workflow.yml index 32a0b9b74..5540c58c5 100644 --- a/.github/workflows/deployment.workflow.yml +++ b/.github/workflows/deployment.workflow.yml @@ -81,15 +81,17 @@ jobs: ) }' composer.json ${GITHUB_WORKSPACE}/composer.json > temp_composer.json - jq '.extra."drupal-scaffold"."file-mapping" = {}' temp_composer.json > temp_composer.json + jq '.extra."drupal-scaffold"."file-mapping" |= del( + .["[web-root]/themes/contrib/cohesion-theme/templates/maintenance-page.html.twig"], + .["[web-root]/sites/default/default.settings.php"] + )' temp_composer.json > updated_composer.json # Replace the original composer.json with the merged file. - mv temp_composer.json composer.json + mv updated_composer.json composer.json # Pinning the drupal core dependencies to specific Drupal Core version. composer require drupal/core:${CORE_VERSION} drupal/core-recommended:${CORE_VERSION} drupal/core-composer-scaffold:${CORE_VERSION} --no-update --no-install - cat composer.json - exit 0 + # Install all dependencies. composer install env: