Skip to content

Commit 4b01242

Browse files
author
NEVSTOP
committed
ci: 忽略文档文件触发工作流
修改 GitHub Actions 工作流配置,添加 paths-ignore 规则忽略 markdown 等文档文件,避免无关文件变更触发工作流执行
1 parent fac0de3 commit 4b01242

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.github/workflows/Build_VIPM_Library.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
branches:
1010
- main
1111
types: [closed]
12+
paths-ignore:
13+
- '**.md'
1214

1315
push:
1416
paths-ignore:

.github/workflows/Check_Broken_VIs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ name: Check_Broken_VIs
55
# Controls when the workflow will run
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
8+
pull_request:
9+
branches:
10+
- main
11+
paths-ignore:
12+
- '**.md'
13+
- '**.txt'
14+
- '**.drawio'
15+
- '**.vipb'
16+
817
push:
918
paths-ignore:
1019
- '**.md'

.github/workflows/Run Testcases.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ name: Run Testcases
55
# Controls when the workflow will run
66
on:
77
# Triggers the workflow on push or pull request events but only for the main branch
8+
pull_request:
9+
branches:
10+
- main
11+
paths-ignore:
12+
- '**.md'
13+
- '**.txt'
14+
- '**.drawio'
15+
- '**.vipb'
16+
- '**.png'
17+
- '**.json'
18+
- '**.yml'
19+
820
push:
921
paths-ignore:
1022
- '**.md'

0 commit comments

Comments
 (0)