From c121e32082edaff817d9f69dec0c24855dc0186f Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Mon, 7 Mar 2022 13:17:58 +0100 Subject: [PATCH] Made Github actions auto-cancel redundant jobs. --- .github/workflows/docs.yml | 4 ++++ .github/workflows/linters.yml | 4 ++++ .github/workflows/tests.yml | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index f2d4a8de37..ae83861354 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -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. diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index df76b3f71b..0cabb45934 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -10,6 +10,10 @@ on: paths-ignore: - 'docs/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: flake8: name: flake8 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93140c0129..3798b7dbe1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -10,6 +10,10 @@ on: paths-ignore: - 'docs/**' +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: windows: runs-on: windows-latest