File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,46 @@ concurrency:
99 cancel-in-progress : true
1010
1111jobs :
12+ changes :
13+ runs-on : ubuntu-latest
14+ outputs :
15+ code_changed : ${{ steps.filter.outputs.code }}
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Detect code changes
23+ id : filter
24+ uses : dorny/paths-filter@v3
25+ with :
26+ filters : |
27+ code:
28+ - '**/*'
29+ - '!docs/**'
30+ - '!**/*.md'
31+ - '!**/*.mdx'
32+ - '!LICENSE'
33+ - '!.editorconfig'
34+ - '!.gitattributes'
35+ - '!.gitignore'
36+ - '!.npmrc'
37+ - '!**/.DS_Store'
38+ - '!.github/ISSUE_TEMPLATE/**'
39+ - '!.github/PULL_REQUEST_TEMPLATE*'
40+
41+ docs-only :
42+ runs-on : ubuntu-latest
43+ needs : changes
44+ if : needs.changes.outputs.code_changed != 'true'
45+ steps :
46+ - name : Docs-only change set
47+ run : echo "Docs-only change detected; skipping heavy verification gates."
48+
1249 verify :
50+ needs : changes
51+ if : needs.changes.outputs.code_changed == 'true'
1352 runs-on : ubuntu-latest
1453 timeout-minutes : 30
1554 services :
Original file line number Diff line number Diff line change 1+ ---
2+ type : patch
3+ area : ci
4+ summary : Skip heavy verify gates for docs-only changes by adding path-based change detection.
5+ ---
You can’t perform that action at this time.
0 commit comments