From 0385fa1b499f7217b8c8089d10d9ab5caa9d723e Mon Sep 17 00:00:00 2001 From: nakagawa1022 Date: Tue, 17 Sep 2024 13:48:06 +0900 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/baroque-glue-job.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/baroque-glue-job.yml b/.github/workflows/baroque-glue-job.yml index 5344436..698a01e 100644 --- a/.github/workflows/baroque-glue-job.yml +++ b/.github/workflows/baroque-glue-job.yml @@ -40,10 +40,18 @@ jobs: elif [[ "${{ github.ref }}" == refs/heads/feature/* ]]; then echo "WORKSPACE=e" >> $GITHUB_ENV fi + - name: Set Script Prefix + run: | + if [[ "$WORKSPACE" == "beta" ]]; then + echo "SCRIPT_PREFIX=beta" >> $GITHUB_ENV + elif [[ "$WORKSPACE" == "e" ]]; then + echo "SCRIPT_PREFIX=" >> $GITHUB_ENV + fi + # TODO: (9/13)code_build applyしたらこの下改修 - name: Conditional steps for push events if: github.event_name == 'push' run: | aws s3 rm s3://touchgift-script-glue-staging-${{ env.WORKSPACE }}/job.py - aws s3 cp glue-job/baroque/staging/${{ env.WORKSPACE }}/evserver/job.py s3://touchgift-script-glue-staging-${{ env.WORKSPACE }}/job.py \ No newline at end of file + aws s3 cp glue-job/baroque/staging/${{ env.WORKSPACE }}/evserver/job.py s3://touchgift-script-glue-staging-${{ env.SCRIPT_PREFIX }}/job.py \ No newline at end of file