From 97be960c38dc3cab75bf27d27c6eabd5ee1f7e4f 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 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.workflow.yml b/.github/workflows/deployment.workflow.yml index 32a0b9b74..d22f638ff 100644 --- a/.github/workflows/deployment.workflow.yml +++ b/.github/workflows/deployment.workflow.yml @@ -81,10 +81,13 @@ 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