From 61cb333828f27f0f65d0f5a110785a77d0a42895 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Tue, 22 Nov 2022 08:51:39 -0500 Subject: [PATCH] cancel old pr runs on new push --- .github/workflows/ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e47bf3..d5982a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,10 @@ on: - v* pull_request: +concurrency: + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }}-${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) && github.sha || '' }} + cancel-in-progress: true + jobs: ci: runs-on: ubuntu-latest