Skip to content

gha: fix configure-aws-credentials (#26) #38

gha: fix configure-aws-credentials (#26)

gha: fix configure-aws-credentials (#26) #38

Workflow file for this run

---
# This workflow triggers a build of the production docs site
name: Build Production Site
on:
push:
branches: [main]
permissions:
id-token: write
contents: read
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: ${{ vars.RP_AWS_CRED_REGION }}
role-to-assume: arn:aws:iam::${{ secrets.RP_AWS_CRED_ACCOUNT_ID }}:role/${{ vars.RP_AWS_CRED_BASE_ROLE_NAME }}${{ github.event.repository.name }}
- uses: aws-actions/aws-secretsmanager-get-secrets@v2
with:
secret-ids: |
,sdlc/prod/github/rp_connect_netlify_build_hook
parse-json-secrets: true
- name: Trigger build
run: curl -X POST -d {} $RP_CONNECT_NETLIFY_BUILD_HOOK