Skip to content

Commit f2d026b

Browse files
committed
only run .github/workflows/terraform-example.yml for changes in .github/workflows/terraform-example.yml or terraform-example/
1 parent 03d02e0 commit f2d026b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/terraform-example.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ name: Terraform Example
22

33
on:
44
push:
5-
branches: [main]
5+
paths:
6+
- '.github/workflows/terraform-example.yml'
7+
- 'terraform-example/**'
68
pull_request:
7-
branches: [main]
9+
paths:
10+
- '.github/workflows/terraform-example.yml'
11+
- 'terraform-example/**'
12+
workflow_dispatch:
813

914
jobs:
1015
validate:

0 commit comments

Comments
 (0)