From ccc949a26297e4821436f468f48807eb4e5e1817 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ma=C5=82ek?= Date: Fri, 10 Nov 2023 11:20:33 +0100 Subject: [PATCH] ci: don't run more than once per PR branch (#1104) --- .github/workflows/integration-enterprise.yaml | 6 ++++++ .github/workflows/integration-konnect.yaml | 6 ++++++ .github/workflows/integration.yaml | 6 ++++++ .github/workflows/test.yaml | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/.github/workflows/integration-enterprise.yaml b/.github/workflows/integration-enterprise.yaml index 2a349dac2..8138ed332 100644 --- a/.github/workflows/integration-enterprise.yaml +++ b/.github/workflows/integration-enterprise.yaml @@ -1,5 +1,11 @@ name: Enterprise Integration Test +concurrency: + # Run only for most recent commit in PRs but for all tags and commits on main + # Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency + group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/integration-konnect.yaml b/.github/workflows/integration-konnect.yaml index d12d2ad58..5a7050ba9 100644 --- a/.github/workflows/integration-konnect.yaml +++ b/.github/workflows/integration-konnect.yaml @@ -1,5 +1,11 @@ name: Konnect Integration Test +concurrency: + # Run only for most recent commit in PRs but for all tags and commits on main + # Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency + group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} + cancel-in-progress: true + on: [pull_request] jobs: diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 3f426522c..e9a789b33 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -1,5 +1,11 @@ name: Integration Test +concurrency: + # Run only for most recent commit in PRs but for all tags and commits on main + # Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency + group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} + cancel-in-progress: true + on: push: branches: diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index caaa304d5..b7f5f6ccd 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,5 +1,11 @@ name: CI Test +concurrency: + # Run only for most recent commit in PRs but for all tags and commits on main + # Ref: https://docs.github.com/en/actions/using-jobs/using-concurrency + group: ${{ github.workflow }}-${{ github.head_ref || github.sha }} + cancel-in-progress: true + on: push: branches: