Skip to content

Commit 8bd040f

Browse files
committed
ci: add path filters to skip CI on non-source changes
Adds paths filter to push and pull_request triggers to prevent unnecessary CI runs when only documentation or config files change. Workflow now triggers only on src/, build files, gradle/, tools/, and workflow changes.
1 parent fcaa049 commit 8bd040f

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
@@ -6,7 +6,21 @@ on:
66
branches:
77
- main
88
- master
9+
paths:
10+
- 'src/**'
11+
- 'build.gradle*'
12+
- 'settings.gradle*'
13+
- 'gradle/**'
14+
- 'tools/**'
15+
- '.github/workflows/**'
916
pull_request:
17+
paths:
18+
- 'src/**'
19+
- 'build.gradle*'
20+
- 'settings.gradle*'
21+
- 'gradle/**'
22+
- 'tools/**'
23+
- '.github/workflows/**'
1024

1125
permissions:
1226
contents: read

0 commit comments

Comments
 (0)