generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 290
42 lines (38 loc) · 1.24 KB
/
modernisation-platform-account.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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_ACCOUNT_NUMBER: ${{ secrets.MODERNISATION_PLATFORM_ACCOUNT_NUMBER }}
PASSPHRASE: ${{ secrets.PASSPHRASE }}