Skip to content

Commit c2b5303

Browse files
committed
.github/workflows: Use paths-ignore instead of paths for ignoring certain files/paths
Signed-off-by: timflannagan <[email protected]>
1 parent 1cdfb7c commit c2b5303

File tree

6 files changed

+17
-26
lines changed

6 files changed

+17
-26
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
name: ci
22
on:
33
pull_request:
4-
paths:
5-
- '**'
6-
- '!doc/contributors/**'
7-
- '!doc/design/**'
4+
paths-ignore:
5+
- 'doc/**'
86
- '**/*.md'
97
jobs:
108
image:

.github/workflows/e2e-kind.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: ci
22
on:
33
pull_request:
4-
paths:
5-
- '**'
6-
- '!doc/contributors/**'
7-
- '!doc/design/**'
8-
- '!**/*.md'
4+
paths-ignore:
5+
- 'doc/**'
6+
- '**/*.md'
97
schedule:
108
- cron: '0 0 * * *' # daily to pick up releases
119
jobs:

.github/workflows/e2e-minikube.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
name: ci
22
on:
33
pull_request:
4-
paths:
5-
- '**'
6-
- '!doc/contributors/**'
7-
- '!doc/design/**'
8-
- '!**/*.md'
4+
paths-ignore:
5+
- 'doc/**'
6+
- '**/*.md'
97
schedule:
108
- cron: '0 0 * * *' # daily to pick up releases
119
jobs:

.github/workflows/e2e-tests.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- '**'
9-
- '!doc/**'
10-
- '!**/*.md'
7+
paths-ignore:
8+
- 'doc/**'
9+
- '**/*.md'
1110
jobs:
1211
e2e-tests:
1312
runs-on: ubuntu-latest

.github/workflows/unit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- '**'
9-
- '!doc/**'
10-
- '!**/*.md'
7+
paths-ignore:
8+
- 'doc/**'
9+
- '**/*.md'
1110
jobs:
1211
unit:
1312
runs-on: ubuntu-latest

.github/workflows/verify.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@ on:
44
branches:
55
- master
66
pull_request:
7-
paths:
8-
- '**'
9-
- '!doc/**'
10-
- '!**/*.md'
7+
paths-ignore:
8+
- 'doc/**'
9+
- '**/*.md'
1110
jobs:
1211
verify:
1312
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)