Merge pull request #8805 from ministryofjustice/feature/new-collab-vi… #1348
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Terraform: modernisation-platform-account" | |
on: | |
push: | |
paths: | |
- 'terraform/modernisation-platform-account/**' | |
- '!**.md' | |
- '.github/workflows/modernisation-platform-account.yml' | |
- 'collaborators.json' | |
- '.github/workflows/reusable_terraform_plan_apply.yml' | |
branches: | |
- main | |
pull_request: | |
paths: | |
- 'terraform/modernisation-platform-account/**' | |
- '!**.md' | |
- '.github/workflows/modernisation-platform-account.yml' | |
- 'collaborators.json' | |
- '.github/workflows/reusable_terraform_plan_apply.yml' | |
branches: | |
- main | |
types: [opened, edited, reopened, synchronize] | |
workflow_dispatch: | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
id-token: write # This is required for requesting the JWT | |
contents: read # This is required for actions/checkout | |
pull-requests: write | |
jobs: | |
modernisation-platform-account-plan-and-apply: | |
uses: ./.github/workflows/reusable_terraform_plan_apply.yml | |
with: | |
working-directory: "terraform/modernisation-platform-account" | |
workflow_id: "modernisation-platform-account" | |
secrets: | |
modernisation_platform_environments: ${{ secrets.MODERNISATION_PLATFORM_ENVIRONMENTS }} | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} |