Skip to content

Commit fdb1ddc

Browse files
committed
Limit build action paths
1 parent 41c9199 commit fdb1ddc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,24 @@ on:
33
# Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests)
44
push:
55
branches: [ main ]
6+
paths:
7+
- ".github/workflows/build.yml"
8+
- "src/**"
9+
- "gradle/**"
10+
- "*gradle.kts"
11+
- "gradlew*"
12+
- "gradle.properties"
13+
- "README.md"
614
# Trigger the workflow on any pull request
715
pull_request:
16+
paths:
17+
- ".github/workflows/build.yml"
18+
- "src/**"
19+
- "gradle/**"
20+
- "*gradle.kts"
21+
- "gradlew*"
22+
- "gradle.properties"
23+
- "README.md"
824

925
jobs:
1026

0 commit comments

Comments
 (0)