Skip to content

Commit e3b6cea

Browse files
committed
stop duplicate builds
1 parent b7ce9ad commit e3b6cea

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,20 @@ on:
55
- pull_request
66

77
jobs:
8+
pre_job:
9+
runs-on: [self-hosted, x64]
10+
outputs:
11+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
12+
steps:
13+
- id: skip_check
14+
uses: fkirc/skip-duplicate-actions@master
15+
with:
16+
do_not_skip: '["pull_request"]'
17+
cancel_others: 'true'
18+
concurrent_skipping: same_content
819
test:
20+
needs: pre_job
21+
if: ${{ needs.pre_job.outputs.should_skip != 'true' }}
922
runs-on: ubuntu-latest
1023
strategy:
1124
matrix:

0 commit comments

Comments
 (0)