From 821d407b9bc8b0a873e21559d3119a57f28ae819 Mon Sep 17 00:00:00 2001 From: Konrad Dysput Date: Thu, 12 Dec 2024 13:11:28 +0100 Subject: [PATCH 1/2] cicd: cancel previous workflow on commit --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e5bf56b9..02c85248 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,6 +5,10 @@ on: branches: [main, dev] pull_request: + concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + jobs: test_linux_all: runs-on: ubuntu-latest From a82bcb70b70d7d5d291515322688dbd002858c05 Mon Sep 17 00:00:00 2001 From: Konrad Dysput Date: Thu, 12 Dec 2024 13:36:07 +0100 Subject: [PATCH 2/2] cicd: use concurrency for all jobs --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 02c85248..a4073f95 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,9 +5,9 @@ on: branches: [main, dev] pull_request: - concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} - cancel-in-progress: true +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true jobs: test_linux_all: