From 98b59674ac97b5b2130c826dbf8418a625134418 Mon Sep 17 00:00:00 2001 From: Zuzana Miklankova Date: Wed, 20 Mar 2024 09:50:32 +0100 Subject: [PATCH] github actions: add concurrency, stop in progress actions --- .github/workflows/container-tests.yml | 5 ++++- .github/workflows/openshift-tests.yml | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/container-tests.yml b/.github/workflows/container-tests.yml index 16cdeed..31a09d6 100644 --- a/.github/workflows/container-tests.yml +++ b/.github/workflows/container-tests.yml @@ -5,8 +5,11 @@ on: jobs: container-tests: # This job only runs for '[test]' pull request comments by owner, member - runs-on: ubuntu-20.04 name: "Container tests: ${{ matrix.version }} - ${{ matrix.os_test }}" + runs-on: ubuntu-20.04 + concurrency: + group: container-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} + cancel-in-progress: true strategy: fail-fast: false matrix: diff --git a/.github/workflows/openshift-tests.yml b/.github/workflows/openshift-tests.yml index a1a10c2..d6e67ac 100644 --- a/.github/workflows/openshift-tests.yml +++ b/.github/workflows/openshift-tests.yml @@ -7,6 +7,9 @@ jobs: # This job only runs for '[test-all]' or '[test-openshift] pull request comments by owner, member name: "${{ matrix.test_case }} tests: ${{ matrix.version }} - ${{ matrix.os_test }}" runs-on: ubuntu-20.04 + concurrency: + group: ocp-${{ github.event.issue.number }}-${{ matrix.version }}-${{ matrix.os_test }} + cancel-in-progress: true strategy: fail-fast: false matrix: