Skip to content

Commit

Permalink
show whether publishing to staging or production
Browse files Browse the repository at this point in the history
  • Loading branch information
cheempz authored Sep 11, 2024
1 parent 64b7696 commit d54513d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_publish_lambda_layer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ jobs:
- uses: actions/checkout@v4

- if: ${{ inputs.publish-dest == 'staging' }}
name: use staging credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.LAMBDA_PUBLISHER_ARN_STAGING }}
aws-region: ${{ matrix.aws_region }}

- if: ${{ inputs.publish-dest == 'production' }}
name: use production credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.LAMBDA_PUBLISHER_ARN_PROD }}
Expand Down

0 comments on commit d54513d

Please sign in to comment.