Skip to content

Commit d4ead6d

Browse files
committed
ci: skip heavy verify for docs-only changes
1 parent f2fcc39 commit d4ead6d

2 files changed

Lines changed: 44 additions & 0 deletions

File tree

.github/workflows/verify.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,46 @@ concurrency:
99
cancel-in-progress: true
1010

1111
jobs:
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:
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
type: patch
3+
area: ci
4+
summary: Skip heavy verify gates for docs-only changes by adding path-based change detection.
5+
---

0 commit comments

Comments
 (0)