Skip to content

Commit

Permalink
dev: Propagate AWS_REGION via environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansmares committed Apr 14, 2023
1 parent 15db6e0 commit bdf2838
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,14 @@ jobs:
entrypoint: /usr/bin/createdb
args: -h postgres -U root ttn_lorawan_is_store_test
- name: Configure AWS Credentials
if: "${{ secrets.AWS_REGION != '' }}"
if: "${{ env.AWS_REGION != '' }}"
uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-region: "${{ secrets.AWS_REGION }}"
role-to-assume: "arn:aws:iam::${{ secrets.AWS_USER_ID }}:role/${{ secrets.AWS_ROLE_NAME }}"
role-session-name: "${{ secrets.AWS_ROLE_NAME }}-${{ github.job }}-${{ github.run_id }}"
env:
AWS_REGION: "${{ secrets.AWS_REGION }}"
- name: Check out code
uses: actions/checkout@v3
- name: Install Go and Dependencies
Expand Down

0 comments on commit bdf2838

Please sign in to comment.