Skip to content

Commit

Permalink
ACMS-000: Fix failing CI for code deployment on drupal.org.
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkhode1 committed Nov 7, 2023
1 parent 35560cf commit 3f22548
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion scripts/deploy_code.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,3 +57,17 @@ exit_script ${success}
git clone [email protected]: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 [email protected]: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 -

0 comments on commit 3f22548

Please sign in to comment.