Skip to content

Commit 1ea5bec

Browse files
committed
ci: 纯文档/资源改动跳过 CI 触发
1 parent 767140a commit 1ea5bec

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,20 @@ name: CI
66
on:
77
push:
88
branches: [ main ]
9+
# 纯文档/资源改动不影响构建产物,跳过 CI 省时间(public 仓库虽不扣额度,但省 11 分钟等待)。
10+
# 注意:只要本次 push 含任一非忽略路径的改动,CI 仍会触发。
11+
paths-ignore:
12+
- '**.md'
13+
- 'docs/**'
14+
- 'LICENSE'
15+
- '.gitignore'
916
pull_request:
1017
branches: [ main ]
18+
paths-ignore:
19+
- '**.md'
20+
- 'docs/**'
21+
- 'LICENSE'
22+
- '.gitignore'
1123

1224
# 同分支新提交到来时取消正在跑的旧 run,省 CI 额度。
1325
concurrency:

0 commit comments

Comments
 (0)