Skip to content

Commit bc15e99

Browse files
committed
Use correct arn
1 parent 96a298f commit bc15e99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/trigger-deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ jobs:
3737
- name: Configure AWS credentials
3838
uses: aws-actions/configure-aws-credentials@v4
3939
with:
40-
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
41-
aws-region: us-east-1
40+
role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_TO_ASSUME || secrets.STAGING_AWS_ROLE_TO_ASSUME }}
41+
aws-region: ${{ github.ref == 'refs/heads/main' && secrets.AWS_REGION || secrets.STAGING_AWS_REGION }}
4242

4343
- name: Deploy to Trigger.dev (Staging)
4444
if: github.ref == 'refs/heads/staging'

0 commit comments

Comments
 (0)