Skip to content

Commit 3956682

Browse files
authored
Revert "Optimize the bypass of ci. (#360)" (#361)
This reverts commit bfffaca.
1 parent bfffaca commit 3956682

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

.github/workflows/Validate-GPU.yml

Lines changed: 6 additions & 13 deletions
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 }}
@@ -33,25 +36,15 @@ jobs:
3336
submodules: 'recursive'
3437
fetch-depth: 10
3538

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-
4539
- name: Check bypass
4640
id: check-bypass
47-
if: steps.filter.outputs.need_clone == 'true'
4841
uses: ./.github/actions/check-bypass
4942
with:
5043
github-token: ${{ secrets.GITHUB_TOKEN }}
5144
workflow-name: validate
5245

5346
- name: Merge PR to test branch
54-
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
47+
if: steps.check-bypass.outputs.can-skip != 'true'
5548
run: |
5649
git fetch origin pull/${PR_ID}/merge
5750
git checkout -b test FETCH_HEAD
@@ -60,7 +53,7 @@ jobs:
6053
env:
6154
work_dir: ${{ github.workspace }}
6255
CACHE_DIR: /home/data/cfs/.cache
63-
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
56+
if: steps.check-bypass.outputs.can-skip != 'true'
6457
run: |
6558
container_name=${TASK}-${core_index}-$(date +%Y%m%d-%H%M%S)
6659
echo "container_name=${container_name}" >> ${{ github.env }}
@@ -88,7 +81,7 @@ jobs:
8881
- name: Run check
8982
env:
9083
work_dir: ${{ github.workspace }}
91-
if: steps.filter.outputs.need_clone == 'true' && steps.check-bypass.outputs.can-skip != 'true'
84+
if: steps.check-bypass.outputs.can-skip != 'true'
9285
run: |
9386
docker exec -t ${{ env.container_name }} /bin/bash -c '
9487
source ${{ github.workspace }}/../../../proxy

0 commit comments

Comments
 (0)