Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
nakagawa1022 committed Sep 17, 2024
1 parent 1a6cbb2 commit 0385fa1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/baroque-glue-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
aws s3 cp glue-job/baroque/staging/${{ env.WORKSPACE }}/evserver/job.py s3://touchgift-script-glue-staging-${{ env.SCRIPT_PREFIX }}/job.py

0 comments on commit 0385fa1

Please sign in to comment.