generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 290
39 lines (36 loc) · 1.05 KB
/
terraform-pagerduty.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
name: "Terraform: PagerDuty resources"
on:
push:
paths:
- 'terraform/pagerduty/**'
- '!**.md'
- '.github/workflows/terraform-pagerduty.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
pull_request:
paths:
- 'terraform/pagerduty/**'
- '!**.md'
- '.github/workflows/terraform-pagerduty.yml'
- '.github/workflows/reusable_terraform_plan_apply.yml'
branches:
- main
types: [opened, edited, reopened, synchronize]
workflow_dispatch:
permissions:
id-token: write # This is required for requesting the JWT
contents: read # This is required for actions/checkout
pull-requests: write
defaults:
run:
shell: bash
jobs:
pagerduty-plan-and-apply:
uses: ./.github/workflows/reusable_terraform_plan_apply.yml
with:
working-directory: "terraform/pagerduty"
workflow_id: "pagerduty"
secrets:
MODERNISATION_PLATFORM_ACCOUNT_NUMBER: "${{ secrets.MODERNISATION_PLATFORM_ACCOUNT_NUMBER }}"
PASSPHRASE: ${{ secrets.PASSPHRASE }}