From 3f22548d051043284603767a7382b288e5a87ff5 Mon Sep 17 00:00:00 2001 From: Vishal Khode Date: Tue, 7 Nov 2023 10:37:25 +0530 Subject: [PATCH] ACMS-000: Fix failing CI for code deployment on drupal.org. --- scripts/deploy_code.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/scripts/deploy_code.sh b/scripts/deploy_code.sh index 46e679ec1..a06637bb7 100755 --- a/scripts/deploy_code.sh +++ b/scripts/deploy_code.sh @@ -16,7 +16,7 @@ exit_script() { exit 1 fi } -declare -a acms_modules=("acquia_cms_article" "acquia_cms_audio" "acquia_cms_component" "acquia_cms_document" "acquia_cms_event" "acquia_cms_headless" "acquia_cms_image" "acquia_cms_page" "acquia_cms_person" "acquia_cms_place" "acquia_cms_search" "acquia_cms_site_studio" "acquia_cms_starter" "acquia_cms_toolbar" "acquia_cms_video") +declare -a acms_modules=("acquia_cms_article" "acquia_cms_audio" "acquia_cms_component" "acquia_cms_document" "acquia_cms_event" "acquia_cms_headless" "acquia_cms_image" "acquia_cms_page" "acquia_cms_person" "acquia_cms_search" "acquia_cms_site_studio" "acquia_cms_starter" "acquia_cms_toolbar" "acquia_cms_video") for acms_module in "${acms_modules[@]}" do @@ -57,3 +57,17 @@ exit_script ${success} git clone git@git.drupal.org:project/sitestudio_config_management.git --branch=develop ../clone/sitestudio_config_management && cd ../clone/sitestudio_config_management git pull origin 1.x --rebase git push origin develop:1.x + +# Move back to the root directory. +cd - + +# We need to do workaround to push code on drupal.org for acquia_cms_place module +# As we've made a release for 1.x branch and we can't force push on release branch. :/ +./acms-split.sh --branch=develop --push=drupal --module=acquia_cms_place && success=true || success=false +exit_script ${success} +git clone git@git.drupal.org:project/acquia_cms_place.git --branch=develop ../clone/acquia_cms_place && cd ../clone/acquia_cms_place +git pull origin 1.x --rebase +git push origin develop:1.x + +# Move back to the root directory. +cd -