Skip to content

Commit 42f6f06

Browse files
committed
Skip duplicate workflow runs
1 parent d81106f commit 42f6f06

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/test.yml

+17
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,26 @@ on:
77
- master
88

99
jobs:
10+
check_duplicate_runs:
11+
name: Check for duplicate runs
12+
continue-on-error: true
13+
runs-on: ubuntu-latest
14+
outputs:
15+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
16+
steps:
17+
- id: skip_check
18+
uses: fkirc/skip-duplicate-actions@master
19+
with:
20+
concurrent_skipping: always
21+
cancel_others: true
22+
skip_after_successful_duplicate: false
23+
paths_ignore: '["**/README.md", "**/LICENSE"]'
24+
do_not_skip: '["pull_request"]'
25+
1026
tests:
1127
name: Run tests
1228
runs-on: ubuntu-18.04
29+
needs: [check_duplicate_runs]
1330
strategy:
1431
matrix:
1532
python-version: ['2.7', '3.3', '3.4', '3.5', '3.6', '3.7', '3.8', '3.9']

0 commit comments

Comments
 (0)