Skip to content

Commit 4aa3d54

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

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,28 @@ 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+
github_token: ${{ secrets.GITHUB_TOKEN }}
25+
concurrent_skipping: always
26+
cancel_others: true
27+
skip_after_successful_duplicate: false
28+
paths_ignore: '["**/README.rst", "**/CHANGES.rst", "**/HACKING.rst", "**/LICENSE"]'
29+
do_not_skip: '["pull_request"]'
30+
1431
build:
1532
name: Python ${{ matrix.python-version }}
1633
runs-on: ubuntu-latest
34+
needs: check_duplicate_runs
35+
if: ${{ needs.check_duplicate_runs.outputs.should_skip != 'true' }}
1736

1837
strategy:
1938
matrix:
@@ -67,6 +86,7 @@ jobs:
6786

6887
lint:
6988
name: ${{ matrix.toxenv }}
89+
needs: check_duplicate_runs
7090
runs-on: ubuntu-latest
7191

7292
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)