From 5c0135909743b23dee49a00e440c588f0ab2eee7 Mon Sep 17 00:00:00 2001 From: nathan Date: Sat, 4 May 2024 15:52:11 -0400 Subject: [PATCH] kill older jobs when adding new commits --- .github/workflows/tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 68603b1..f178139 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,6 +6,13 @@ on: branches: - main +# Kill other jobs when we trigger this workflow by sending new commits +# to the PR. +# https://stackoverflow.com/a/72408109 +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ubuntu-latest