diff options
| author | Menny Even Danan <menny@evendanan.net> | 2020-05-20 22:30:56 +0000 |
|---|---|---|
| committer | Menny Even Danan <menny@evendanan.net> | 2020-05-21 13:01:14 +0000 |
| commit | 684129167ebc88e66169ff123c649ecd00125bbf (patch) | |
| tree | 9c05821f75fd2254f59d1ae607741c4628d0f3cd /.github/actions | |
| parent | 0e546ffc372706a0b735ce0548d51dce000f720d (diff) | |
| download | AnySoftKeyboard-684129167ebc88e66169ff123c649ecd00125bbf.tar.gz AnySoftKeyboard-684129167ebc88e66169ff123c649ecd00125bbf.tar.bz2 | |
Automatically create PR for deplyment halting
Diffstat (limited to '.github/actions')
| -rwxr-xr-x | .github/actions/deploy/deploy.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/actions/deploy/deploy.sh b/.github/actions/deploy/deploy.sh index c9525d582..6c8af3058 100755 --- a/.github/actions/deploy/deploy.sh +++ b/.github/actions/deploy/deploy.sh @@ -87,4 +87,21 @@ echo "Counter is ${BUILD_COUNT_FOR_VERSION}, crash email: ${ANYSOFTKEYBOARD_CRAS ./gradlew "${DEPLOY_TASKS[@]}" +#Making sure no future deployments will happen on this branch. +if [[ "${FRACTION}" == "1.00" ]] && [[ "${DEPLOY_CHANNEL}" == "production" ]]; then + echo "A succesfull full deploy to production has finished." + MARKER_FILE="deployment/halt_deployment_marker" + if [[ -f "${MARKER_FILE}" ]]; then + echo "${MARKER_FILE} exits. No need to create another." + else + echo "Full deployment to production '${DEPLOYMENT_ENVIRONMENT}' was done succesfully" > "${MARKER_FILE}" + git config --global user.email "ask@evendanan.net" + git config --global user.name "Polyglot" + git add "${MARKER_FILE})" + git commit -m "Halting deploy to ${DEPLOYMENT_ENVIRONMENT}" + #cleaning repo + git clean -f -d && git reset --hard HEAD + fi +fi + [[ -n "${GITHUB_ACTIONS}" ]] && chmod -R a+rwx . |
