Skip to content

Commit 4a75c40

Browse files
committed
ci: add path filters to skip workflows on documentation-only changes
- Add paths-ignore for *.md files to spell-check, clang-format, and codecov workflows - Reduces unnecessary CI runs when only documentation is modified - Addresses issue valkey-io#626 Signed-off-by: Hanxi Zhang <hanxizh@amazon.com>
1 parent de22bae commit 4a75c40

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/clang-format.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,13 @@ name: Clang Format Check
22

33
on:
44
push:
5+
paths-ignore:
6+
- '**/*.md'
57
pull_request:
68
paths:
79
- 'src/**'
10+
paths-ignore:
11+
- '**/*.md'
812

913
concurrency:
1014
group: clang-${{ github.head_ref || github.ref }}

.github/workflows/codecov.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@ name: "Codecov"
22

33
# Enabling on each push is to display the coverage changes in every PR,
44
# where each PR needs to be compared against the coverage of the head commit
5-
on: [push, pull_request]
5+
on:
6+
push:
7+
paths-ignore:
8+
- '**/*.md'
9+
pull_request:
10+
paths-ignore:
11+
- '**/*.md'
612

713
concurrency:
814
group: codecov-${{ github.head_ref || github.ref }}

.github/workflows/spell-check.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ name: Spellcheck
77

88
on:
99
push:
10+
paths-ignore:
11+
- '**/*.md'
1012
pull_request:
13+
paths-ignore:
14+
- '**/*.md'
1115

1216
concurrency:
1317
group: spellcheck-${{ github.head_ref || github.ref }}

0 commit comments

Comments
 (0)