From e93cabed611c8112e420eb458a29b82b2cd7fcfb Mon Sep 17 00:00:00 2001 From: galargh Date: Fri, 5 Apr 2024 17:18:02 +0100 Subject: [PATCH] ci: cancel in progress runs on pull requests only --- .github/workflows/build.yml | 2 +- .github/workflows/check.yml | 2 +- .github/workflows/docker.yml | 4 ---- .github/workflows/release.yml | 4 ---- .github/workflows/test.yml | 2 +- 5 files changed, 3 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index ce46a4a5f73..d7dd59e143e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ defaults: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: {} diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 7a77dc70bf4..8d19589f728 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -14,7 +14,7 @@ defaults: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: {} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 8e0ca57a554..9e6bf59f1ad 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,10 +15,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - permissions: {} jobs: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35e139b7d17..dd8a9cfbc4f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,10 +13,6 @@ defaults: run: shell: bash -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - permissions: {} jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ad274dfa5c5..647806e0faa 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ defaults: concurrency: group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true + cancel-in-progress: ${{ github.event_name == 'pull_request' }} permissions: {}