From 0377f1f8e5eeb4a1df9612caf48e269f461875d6 Mon Sep 17 00:00:00 2001 From: Zuzana Miklankova Date: Tue, 5 Mar 2024 09:28:19 +0100 Subject: [PATCH] cancel running GitHub Action if a new one is created --- .github/workflows/container-tests.yml | 5 +++++ .github/workflows/openshift-tests.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/container-tests.yml b/.github/workflows/container-tests.yml index 9da211f7..31595c57 100644 --- a/.github/workflows/container-tests.yml +++ b/.github/workflows/container-tests.yml @@ -2,6 +2,11 @@ on: issue_comment: types: - created + +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + jobs: container-tests: runs-on: ubuntu-20.04 diff --git a/.github/workflows/openshift-tests.yml b/.github/workflows/openshift-tests.yml index 826f24b5..22a179fb 100644 --- a/.github/workflows/openshift-tests.yml +++ b/.github/workflows/openshift-tests.yml @@ -2,6 +2,11 @@ on: issue_comment: types: - created + +concurrency: + group: ${{ github.head_ref }} + cancel-in-progress: true + jobs: openshift-tests: name: "${{ matrix.test_case }} tests: ${{ matrix.version }} - ${{ matrix.os_test }}"