-
Notifications
You must be signed in to change notification settings - Fork 10
58 lines (54 loc) · 1.63 KB
/
idempotence-command.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ChatOPS Idempotence
run-name: "On demand Idempotence test for PR - (#${{ github.event.inputs.pr-id }}) ${{ github.event.inputs.pr-title }}"
permissions:
contents: read
concurrency: chatops-apply
on:
workflow_dispatch:
inputs:
paths:
description: Space delimited list of module paths to test
type: string
required: true
tf_version:
description: Terraform versions to use for tests, comma-separated list
type: string
pr-id:
description: ID of the PR that triggered this workflow
type: string
required: true
pr-title:
description: Title of the PR that triggered this workflow
type: string
required: true
comment-id:
description: "The comment-id of the slash command"
type: string
required: true
branch:
description: Branch on which the tests should run
type: string
default: main
repository:
description: Repository on which the tests should run
type: string
required: false
jobs:
test:
name: Run idempotence test
permissions:
contents: read
pull-requests: write
id-token: write
uses: PaloAltoNetworks/terraform-modules-swfw-ci-workflows/.github/workflows/[email protected]
secrets: inherit
with:
cloud: azure
paths: ${{ inputs.paths }}
tf_version: ${{ inputs.tf_version }}
pr-id: ${{ inputs.pr-id }}
comment-id: ${{ inputs.comment-id }}
branch: ${{ inputs.branch }}
repository: ${{ inputs.repository }}
terratest_action: Idempotence
apply_timeout: 60