Skip to content

Commit f050a63

Browse files
committed
ci: Add paths filter to skip CI on documentation-only changes
Add paths filter to push and pull_request triggers to run CI only when relevant files are modified: - src/** - tests/** - CMakeLists.txt - Makefile - .github/workflows/** - third_party/** This prevents unnecessary CI runs when only documentation files like README or LICENSE are updated.
1 parent cf36d0c commit f050a63

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,22 @@ name: CI
33
on:
44
push:
55
branches: [ main ]
6+
paths:
7+
- 'src/**'
8+
- 'tests/**'
9+
- 'CMakeLists.txt'
10+
- 'Makefile'
11+
- '.github/workflows/**'
12+
- 'third_party/**'
613
pull_request:
714
branches: [ main ]
15+
paths:
16+
- 'src/**'
17+
- 'tests/**'
18+
- 'CMakeLists.txt'
19+
- 'Makefile'
20+
- '.github/workflows/**'
21+
- 'third_party/**'
822

923
concurrency:
1024
group: ${{ github.workflow }}-${{ github.ref }}

0 commit comments

Comments
 (0)