Skip to content

Commit

Permalink
/deploy uat
Browse files Browse the repository at this point in the history
  • Loading branch information
jbyrne committed Mar 8, 2024
1 parent 5191a19 commit 1cbea53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -199,13 +199,13 @@ jobs:
github.event.head_commit.message == '/deploy sit' ||
github.event.head_commit.message == '/deploy uat'
run: |
cat ./configs/hitideConfig-${{ env.THE_ENV }}.js > ./dist/hitideConfig.js
message="${{ github.event.head_commit.message }}"
trimmed_message=${message:1} # Remove leading slash
override_env=$(echo "$trimmed_message" | grep -oE '[^[:space:]]+$')
override_env_upper=$(echo "$trimmed_message" | awk '{print toupper($NF)}')
echo "THE_ENV=${override_env}" >> $GITHUB_ENV
echo "TARGET_ENV_UPPERCASE=${override_env_upper}" >> $GITHUB_ENV
echo "TESTING_ENV=${override_env}" >> $GITHUB_ENV
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
Expand Down

0 comments on commit 1cbea53

Please sign in to comment.