From 9c37662693baff843a73d5ffe0f9ad551d006021 Mon Sep 17 00:00:00 2001 From: Tom Carrick Date: Thu, 1 Dec 2022 18:58:23 +0100 Subject: [PATCH] Cancel redundant CI workflows (#282) --- .github/workflows/project_ci.yml | 4 ++++ {{cookiecutter.repo_name}}/.github/workflows/django_ci.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/project_ci.yml b/.github/workflows/project_ci.yml index 16f3d40a..9e428626 100644 --- a/.github/workflows/project_ci.yml +++ b/.github/workflows/project_ci.yml @@ -8,6 +8,10 @@ name: Project CI on: pull_request +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: create_and_test_project: name: Create and test Django project diff --git a/{{cookiecutter.repo_name}}/.github/workflows/django_ci.yml b/{{cookiecutter.repo_name}}/.github/workflows/django_ci.yml index 7a66e83f..4974e765 100644 --- a/{{cookiecutter.repo_name}}/.github/workflows/django_ci.yml +++ b/{{cookiecutter.repo_name}}/.github/workflows/django_ci.yml @@ -4,6 +4,10 @@ name: Django CI{% raw %} on: pull_request +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: # # uncomment when using docker # docker: