From eaa6624d26e26177bf923fe19407e197b2acfaab Mon Sep 17 00:00:00 2001 From: Geoff Lamperd Date: Mon, 10 Jun 2024 17:16:43 +1000 Subject: [PATCH] fix: secrets not substituted correctly --- .github/workflows/setup-ceremony.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-ceremony.yml b/.github/workflows/setup-ceremony.yml index 45bbbe3..9933780 100644 --- a/.github/workflows/setup-ceremony.yml +++ b/.github/workflows/setup-ceremony.yml @@ -5,6 +5,9 @@ on: push: branches: [ main, staging, dev ] +env: + AWS_REGION: eu-central-1 + jobs: # first we start a custom runner start-runner: @@ -23,7 +26,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + aws-region: ${{ env.AWS_REGION }} - name: Start EC2 runner id: start-ec2-runner @@ -166,7 +169,7 @@ jobs: with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - aws-region: ${{ secrets.AWS_REGION }} + aws-region: ${{ env.AWS_REGION }} - name: Stop EC2 runner uses: machulav/ec2-github-runner@v2