Skip to content

Commit 772b2b0

Browse files
Skip CI for documentation-only changes (#464)
Add paths-ignore filters to build and publish workflows so pushes and PRs that only touch markdown files, docs/, license files, .gitignore, or issue templates do not trigger a full build.
1 parent de6d0ec commit 772b2b0

2 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
name: build
2-
on: [push, pull_request]
2+
on:
3+
push:
4+
paths-ignore:
5+
- '**/*.md'
6+
- 'docs/**'
7+
- '.gitignore'
8+
- 'LICENSE-APACHE'
9+
- 'LICENSE-MIT'
10+
- 'funding.json'
11+
- '.github/ISSUE_TEMPLATE/**'
12+
pull_request:
13+
paths-ignore:
14+
- '**/*.md'
15+
- 'docs/**'
16+
- '.gitignore'
17+
- 'LICENSE-APACHE'
18+
- 'LICENSE-MIT'
19+
- 'funding.json'
20+
- '.github/ISSUE_TEMPLATE/**'
321
jobs:
422
gradle:
523
strategy:

.github/workflows/publish.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ on:
33
push:
44
branches:
55
- "develop"
6+
paths-ignore:
7+
- '**/*.md'
8+
- 'docs/**'
9+
- '.gitignore'
10+
- 'LICENSE-APACHE'
11+
- 'LICENSE-MIT'
12+
- 'funding.json'
13+
- '.github/ISSUE_TEMPLATE/**'
614
jobs:
715
publish:
816
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)