From 970e8083c6bfecd3e6752e4180652f5971c26b2a Mon Sep 17 00:00:00 2001 From: Patrick Roddy Date: Thu, 26 Oct 2023 09:36:05 +0100 Subject: [PATCH] Cancel all but the most recent run on the current branch/PR --- .github/workflows/linting.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index f8bc44d..6c46c40 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -7,6 +7,12 @@ on: - "renovate/**" pull_request: +concurrency: + cancel-in-progress: true + group: >- + ${{ github.workflow }}- + ${{ github.event.pull_request.number || github.ref }} + jobs: linting: runs-on: ubuntu-latest