Skip to content

Commit c973d3a

Browse files
committed
chore(gha): only run workflows on specific changes (#17)
- Adds `paths:` to github actions workflow files, so that we're only executing workflows on relevant changes
1 parent 9d24b76 commit c973d3a

File tree

4 files changed

+25
-3
lines changed

4 files changed

+25
-3
lines changed

.github/workflows/chart-test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
on: pull_request
1+
on:
2+
pull_request:
3+
paths:
4+
- 'charts/aks-node-termination-handler/**'
5+
- '.github/workflows/chart-test.yml'
26

37
jobs:
48
lint-test:

.github/workflows/e2e.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
1-
on: pull_request
1+
on:
2+
pull_request:
3+
paths:
4+
- '**/**.go'
5+
- 'go.mod'
6+
- 'go.sum'
7+
- '.github/workflows/e2e.yml'
8+
- 'Makefile'
29

310
jobs:
411
e2e:

.github/workflows/govulncheck.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
on: pull_request
1+
on:
2+
pull_request:
3+
paths:
4+
- '**/**.go'
5+
- 'go.mod'
6+
- 'go.sum'
7+
- '.github/workflows/govulncheck.yml'
28

39
jobs:
410
govulncheck:

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
branches:
44
- main
55
pull_request:
6+
paths:
7+
- '**/**.go'
8+
- 'go.mod'
9+
- 'go.sum'
10+
- '.github/workflows/test.yml'
611

712
jobs:
813
test:

0 commit comments

Comments
 (0)