Skip to content

Commit

Permalink
Update verify-deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
oluwolenpbc authored Dec 23, 2024
1 parent 9e884da commit 2c4f78e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/verify-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ on:
required: true
type: choice
options:
- sbx-sandbox
- east-prod
- east-impl
- dev
- test
- prod

jobs:
test:
Expand All @@ -32,16 +32,16 @@ jobs:
uses: aws-actions/configure-aws-credentials@v3
with:
aws-region: ${{ vars.AWS_REGION }}
role-to-assume: arn:aws:iam::${{ secrets[format('{0}_ACCOUNT_ID', inputs.environment)] }}:role/delegatedadmin/developer/ab2d-${{ inputs.environment }}-github-actions
role-to-assume: arn:aws:iam::test:role/delegatedadmin/developer/ab2d-${{ inputs.environment }}-github-actions


- name: Set script file based on environment
run: |
if [[ "${{ github.event.inputs.environment }}" == "sbx-sandbox" ]]; then
if [[ "${{ github.event.inputs.environment }}" == "sbx" ]]; then
script="./scripts/verify-deployment-ab2d-sbx-sandbox.sh"
elif [[ "${{ github.event.inputs.environment }}" == "east-prod" ]]; then
elif [[ "${{ github.event.inputs.environment }}" == "prod" ]]; then
script="./scripts/verify-deployment-ab2d-east-prod.sh"
elif [[ "${{ github.event.inputs.environment }}" == "east-impl" ]]; then
elif [[ "${{ github.event.inputs.environment }}" == "test" ]]; then
script="./scripts/verify-deployment-ab2d-east-impl.sh"
else
echo "Invalid environment selected."
Expand Down

0 comments on commit 2c4f78e

Please sign in to comment.