From 7f3657ee4a54359f891e0c0bd4041d572034a6ab Mon Sep 17 00:00:00 2001 From: Douglas Raillard Date: Thu, 25 May 2023 03:16:16 +0100 Subject: [PATCH] .github/workflows/test.yml: Cancel running tests when PR is updated Cancel current test workflow if a new set of tests is triggered. --- .github/workflows/test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 244f7031c..e7d00e6d3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,6 +22,14 @@ jobs: test: # Name the Job name: test + + # Cancel current runs of the workflow if we trigger it again for the same + # ref. + concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + # Set the type of machine to run on # https://github.com/actions/virtual-environments runs-on: ${{ matrix.os }} -- GitLab