Made Github actions auto-cancel redundant jobs.

This commit is contained in:
Mariusz Felisiak 2022-03-07 13:17:58 +01:00 committed by GitHub
parent 4468bcc657
commit c121e32082
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 0 deletions

View File

@ -12,6 +12,10 @@ on:
- 'docs/**'
- '.github/workflows/docs.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docs:
# OS must be the same as on djangoproject.com.

View File

@ -10,6 +10,10 @@ on:
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
flake8:
name: flake8

View File

@ -10,6 +10,10 @@ on:
paths-ignore:
- 'docs/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
windows:
runs-on: windows-latest