Skip to content

Commit aa7d4d0

Browse files
committed
Merge branch 'develop' into collect_info
2 parents 6f53c99 + bfffaca commit aa7d4d0

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.github/workflows/Validate-GPU.yml

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

118
env:
129
PR_ID: ${{ github.event.pull_request.number }}
@@ -36,15 +33,25 @@ jobs:
3633
submodules: 'recursive'
3734
fetch-depth: 10
3835

36+
- name: Detect changes
37+
id: filter
38+
uses: dorny/paths-filter@v3
39+
with:
40+
filters: |
41+
need_clone:
42+
- "samples/**"
43+
- "paddle_samples/**"
44+
3945
- name: Check bypass
4046
id: check-bypass
47+
if: steps.filter.outputs.need_clone == 'true'
4148
uses: ./.github/actions/check-bypass
4249
with:
4350
github-token: ${{ secrets.GITHUB_TOKEN }}
4451
workflow-name: validate
4552

4653
- name: Merge PR to test branch
47-
if: steps.check-bypass.outputs.can-skip != 'true'
54+
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
4855
run: |
4956
git fetch origin pull/${PR_ID}/merge
5057
git checkout -b test FETCH_HEAD
@@ -53,7 +60,7 @@ jobs:
5360
env:
5461
work_dir: ${{ github.workspace }}
5562
CACHE_DIR: /home/data/cfs/.cache
56-
if: steps.check-bypass.outputs.can-skip != 'true'
63+
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
5764
run: |
5865
container_name=${TASK}-${core_index}-$(date +%Y%m%d-%H%M%S)
5966
echo "container_name=${container_name}" >> ${{ github.env }}
@@ -81,7 +88,7 @@ jobs:
8188
- name: Run check
8289
env:
8390
work_dir: ${{ github.workspace }}
84-
if: steps.check-bypass.outputs.can-skip != 'true'
91+
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
8592
run: |
8693
docker exec -t ${{ env.container_name }} /bin/bash -c '
8794
source ${{ github.workspace }}/../../../proxy

0 commit comments

Comments
 (0)