From bdf283827a60681574f29a5ee1f45f466fb1025d Mon Sep 17 00:00:00 2001 From: Adrian-Stefan Mares Date: Fri, 14 Apr 2023 16:22:45 +0200 Subject: [PATCH] dev: Propagate AWS_REGION via environment variable --- .github/workflows/go.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index cbf61f3a80a..ac9998e30a9 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -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