From 7c2a4671ffafd33bd1d57f87dd55a3eeafb1af85 Mon Sep 17 00:00:00 2001 From: David Hewson Date: Tue, 16 Jul 2024 14:46:22 +0100 Subject: [PATCH] cancel outdated non master CI jobs so that pushing in quick succession will not cause a blockage in ci --- .github/workflows/tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9bd0b9883..72d68abb4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,7 +28,9 @@ jobs: args: "--resolver lts-16" - os: macos-latest args: "--resolver lts-14" - + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'master' }} steps: - name: Clone project uses: actions/checkout@v2