Skip to content

Commit 1daa524

Browse files
authored
ci(workflow): add path filters to build workflow (#28)
Only trigger builds when relevant files change: - src/** (library source code) - .github/workflows/build.yml (workflow itself) Prevents unnecessary builds from documentation changes.
1 parent 5ba818a commit 1daa524

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Build
33
on:
44
push:
55
branches: [ main, develop ]
6+
paths:
7+
- 'src/**'
8+
- '.github/workflows/build.yml'
69
pull_request:
710
branches: [ main ]
11+
paths:
12+
- 'src/**'
13+
- '.github/workflows/build.yml'
814

915
jobs:
1016
build:

0 commit comments

Comments
 (0)