Skip to content

Commit fd78a16

Browse files
authored
Optimize the workflow trigger conditions. (#359)
1 parent c746b9a commit fd78a16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/Validate-GPU.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches:
66
- develop
7+
paths:
8+
- "samples/**"
9+
- "paddle_samples/**"
710

811
env:
912
PR_ID: ${{ github.event.pull_request.number }}
@@ -31,7 +34,7 @@ jobs:
3134
with:
3235
ref: ${{ github.event.pull_request.base.ref }}
3336
submodules: 'recursive'
34-
fetch-depth: 1000
37+
fetch-depth: 10
3538

3639
- name: Check bypass
3740
id: check-bypass

0 commit comments

Comments
 (0)