Skip to content

Commit b5332db

Browse files
timflannaganankitathomas
authored andcommitted
.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]> Upstream-repository: operator-lifecycle-manager Upstream-commit: 2fd014019ca8cc86ae859da797e814b72c299257
1 parent d529fcf commit b5332db

File tree

6 files changed

+12
-21
lines changed

6 files changed

+12
-21
lines changed

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

staging/operator-lifecycle-manager/.github/workflows/e2e-kind.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+
- '**/*.md'
86
schedule:
97
- cron: '0 0 * * *' # daily to pick up releases
108
jobs:

staging/operator-lifecycle-manager/.github/workflows/e2e-minikube.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+
- '**/*.md'
86
schedule:
97
- cron: '0 0 * * *' # daily to pick up releases
108
jobs:

staging/operator-lifecycle-manager/.github/workflows/e2e-tests.yml

Lines changed: 2 additions & 3 deletions
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

staging/operator-lifecycle-manager/.github/workflows/unit.yml

Lines changed: 2 additions & 3 deletions
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

staging/operator-lifecycle-manager/.github/workflows/verify.yml

Lines changed: 2 additions & 3 deletions
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)