Skip to content

Commit 08d6e04

Browse files
committed
Use fkirc/skip-duplicate-actions action in workflow
1 parent b2ff588 commit 08d6e04

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,27 @@ on:
1111
- cron: "0 5 * * 6" # 5:00 UTC every Saturday
1212

1313
jobs:
14+
check_duplicate_runs:
15+
name: Check for duplicate runs
16+
continue-on-error: true
17+
runs-on: ubuntu-latest
18+
outputs:
19+
should_skip: ${{ steps.skip_check.outputs.should_skip }}
20+
steps:
21+
- id: skip_check
22+
uses: fkirc/skip-duplicate-actions@master
23+
with:
24+
concurrent_skipping: always
25+
cancel_others: true
26+
skip_after_successful_duplicate: false
27+
paths_ignore: '["**/README.rst", "**/CHANGES.rst", "**/HACKING.rst", "**/LICENSE"]'
28+
do_not_skip: '["pull_request"]'
29+
1430
build:
1531
name: Python ${{ matrix.python-version }}
1632
runs-on: ubuntu-latest
33+
needs: check_duplicate_runs
34+
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}
1735

1836
strategy:
1937
matrix:
@@ -67,6 +85,7 @@ jobs:
6785

6886
lint:
6987
name: ${{ matrix.toxenv }}
88+
needs: check_duplicate_runs
7089
runs-on: ubuntu-latest
7190

7291
strategy:

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"restructuredtext.languageServer.disabled": true
3+
}

0 commit comments

Comments
 (0)