From 2d818ef332758ae32c26880cc02307dbc758ad42 Mon Sep 17 00:00:00 2001 From: Luis Obis Date: Thu, 10 Nov 2022 22:14:09 +0100 Subject: [PATCH 1/2] add GitHub actions setting to cancel previously running workflow if a more recent commit is pushed --- .github/workflows/validation.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index ffc97d738..bf64f15b0 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -14,6 +14,11 @@ on: # Allows you to run this workflow from submodules workflow_call: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + + env: CMAKE_BUILD_TYPE: Release REST_PATH: /rest/framework/install From b7749883b476de0fb579db146bb63ef41dd847a9 Mon Sep 17 00:00:00 2001 From: Luis Obis Date: Thu, 10 Nov 2022 22:18:27 +0100 Subject: [PATCH 2/2] test GitHub Actions concurrency policy --- .github/workflows/validation.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/validation.yml b/.github/workflows/validation.yml index bf64f15b0..7a7a9993c 100644 --- a/.github/workflows/validation.yml +++ b/.github/workflows/validation.yml @@ -18,7 +18,6 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true - env: CMAKE_BUILD_TYPE: Release REST_PATH: /rest/framework/install