From 6e5e22331ee7a2cafdb7a0880ee4fa50b0212689 Mon Sep 17 00:00:00 2001 From: Curtis Banh Date: Wed, 27 Mar 2024 05:06:31 -0700 Subject: [PATCH] added redeploy from UAT --- .github/workflows/build.yml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 46d1200..964d0df 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -50,6 +50,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -99,6 +100,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -164,7 +166,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE @@ -182,6 +184,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -231,6 +234,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -296,7 +300,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE @@ -314,6 +318,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -363,6 +368,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -428,7 +434,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE @@ -446,6 +452,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -495,6 +502,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -560,7 +568,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE @@ -578,6 +586,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -627,6 +636,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -692,7 +702,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE @@ -710,6 +720,7 @@ jobs: TARGET_BRANCH: ${{ github.event.inputs.target_branch }} DEPLOY_LATEST_OPS: ${{ github.event.inputs.deploy_latest_ops }} NEW_BRANCH: false + APPEND_CHANGE: false steps: - name: Init Setup for UAT @@ -759,6 +770,7 @@ jobs: echo "latest_release_branch=$latest_release_branch" >> $GITHUB_ENV echo "TARGET_BRANCH=$latest_release_branch" >> $GITHUB_ENV echo "SOURCE_BRANCH=$latest_release_branch" >> $GITHUB_ENV + echo "APPEND_CHANGE=true" >> $GITHUB_ENV - name: Set OPS branch if: ${{ env.VENUE == 'OPS' && github.event.inputs.deploy_latest_ops == 'true' }} @@ -824,7 +836,7 @@ jobs: fi - name: Append text to file (${{ env.SWODLR_SOURCE_REPO }}) - if: env.NEW_BRANCH == 'true' + if: env.NEW_BRANCH == 'true' || env.APPEND_CHANGE == 'true' run: | echo "${{ env.SWODLR_SOURCE_REPO }} deployment ${{ github.event.inputs.commit }}" >> CHANGE git add CHANGE