Skip to content

Commit 2fd0140

Browse files
authored
.github/workflows: Don't run CI checks for markdown-only updates (#2347)
* .github/workflows: Don't run CI checks for markdown-only updates Update the ci-prefixed workflows and ensure that CI isn't running when only markdown files are updated. Signed-off-by: timflannagan <[email protected]> * .github/workflows: Use paths-ignore instead of paths for ignoring certain files/paths Signed-off-by: timflannagan <[email protected]> * .github/workflows: Remove the need to ignore the root doc/ path The '**/*.md' filter pattern [1] should ignore _all_ markdown extension files anywhere in the repository. [1] https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#patterns-to-match-file-paths Signed-off-by: timflannagan <[email protected]>
1 parent 864b58d commit 2fd0140

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

Diff for: .github/workflows/build.yml

+2-4
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+
- '**/*.md'
86
jobs:
97
image:
108
runs-on: ubuntu-latest

Diff for: .github/workflows/e2e-kind.yml

+2-4
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+
- '**/*.md'
86
schedule:
97
- cron: '0 0 * * *' # daily to pick up releases
108
jobs:

Diff for: .github/workflows/e2e-minikube.yml

+2-4
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+
- '**/*.md'
86
schedule:
97
- cron: '0 0 * * *' # daily to pick up releases
108
jobs:

Diff for: .github/workflows/e2e-tests.yml

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

Diff for: .github/workflows/unit.yml

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

Diff for: .github/workflows/verify.yml

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

0 commit comments

Comments
 (0)