From e6fb12c5ce76db6b7bba154536d658e8f4cb54e8 Mon Sep 17 00:00:00 2001 From: Patrick Roddy Date: Thu, 26 Oct 2023 09:41:30 +0100 Subject: [PATCH] Cancel all but the most recent run on the current branch/PR (#12) This seems overkill for a 2min job, but I guess they all help --- .github/workflows/linting.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 5423ce1..c0cbb6b 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