From ec86b1fbc9c38dbed4ecb52527ac5a76b64c3271 Mon Sep 17 00:00:00 2001 From: David Upton Date: Wed, 1 May 2024 22:20:00 -0400 Subject: [PATCH] Refines Github deploy action --- .github/workflows/deploy_to_s3.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_s3.yml b/.github/workflows/deploy_to_s3.yml index a2a3db2d..6fa4eda1 100644 --- a/.github/workflows/deploy_to_s3.yml +++ b/.github/workflows/deploy_to_s3.yml @@ -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}"