We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 96a298f commit bc15e99Copy full SHA for bc15e99
.github/workflows/trigger-deploy.yml
@@ -37,8 +37,8 @@ jobs:
37
- name: Configure AWS credentials
38
uses: aws-actions/configure-aws-credentials@v4
39
with:
40
- role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
41
- aws-region: us-east-1
+ role-to-assume: ${{ github.ref == 'refs/heads/main' && secrets.AWS_ROLE_TO_ASSUME || secrets.STAGING_AWS_ROLE_TO_ASSUME }}
+ aws-region: ${{ github.ref == 'refs/heads/main' && secrets.AWS_REGION || secrets.STAGING_AWS_REGION }}
42
43
- name: Deploy to Trigger.dev (Staging)
44
if: github.ref == 'refs/heads/staging'
0 commit comments