Skip to content

Commit

Permalink
Refines Github deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrkupton committed May 2, 2024
1 parent 1fb673b commit ec86b1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy_to_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ jobs:
# checkout the cob repository that has been pushed to.
- name: Set Variables
run: |
if [[ "{{ branch }}" == "develop" ]]; then
if [[ "{{ github.ref_name }}" == "develop" ]]; then
echo "BUCKET_NAME=patterns-stg.boston.gov" >> "${GITHUB_ENV}"
elif [[ "{{ branch }}" == "production" ]]; then
elif [[ "{{ github.ref_name }}" == "production" ]]; then
echo "BUCKET_NAME=patterns.boston.gov" >> "${GITHUB_ENV}"
else
echo "BUCKET_NAME=patterns-uat.boston.gov" >> "${GITHUB_ENV}"
Expand Down

0 comments on commit ec86b1f

Please sign in to comment.