From 568d40cd1904da75e1302ab6827184aaa7853af1 Mon Sep 17 00:00:00 2001 From: gpotter2 <10530980+gpotter2@users.noreply.github.com> Date: Thu, 30 Jan 2025 21:47:38 +0100 Subject: [PATCH] Github actions: an unfinished job in a PR should be overwritten --- .github/workflows/unittests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index e8e86242545..6851466a56f 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -7,6 +7,11 @@ on: # The branches below must be a subset of the branches above branches: [master] +# https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ !contains(github.ref, 'master')}} + permissions: contents: read