From 8c2e08bf1193985d97ce1fd281e7d0691db8ac27 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashi Date: Tue, 29 Oct 2024 17:36:11 +0900 Subject: [PATCH] ci: add cancel-in-progress setting see https://github.com/fluent/fluentd/pull/4689 ref. https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs Signed-off-by: Kentaro Hayashi --- .github/workflows/apt-arm.yml | 3 +++ .github/workflows/apt.yml | 3 +++ .github/workflows/macos.yml | 3 +++ .github/workflows/windows.yml | 3 +++ .github/workflows/yum-arm.yml | 3 +++ .github/workflows/yum.yml | 3 +++ 6 files changed, 18 insertions(+) diff --git a/.github/workflows/apt-arm.yml b/.github/workflows/apt-arm.yml index c3a7c89c4..fbffc60eb 100644 --- a/.github/workflows/apt-arm.yml +++ b/.github/workflows/apt-arm.yml @@ -1,6 +1,9 @@ name: Apt based Linux (AArch64) on: workflow_dispatch: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build diff --git a/.github/workflows/apt.yml b/.github/workflows/apt.yml index 390e528c1..cd1db22f7 100644 --- a/.github/workflows/apt.yml +++ b/.github/workflows/apt.yml @@ -5,6 +5,9 @@ on: - master - fluent-package-v5 pull_request: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 7cfdf810e..5f1768ab7 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -5,6 +5,9 @@ on: - master - fluent-package-v5 pull_request: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 1d414b0e5..8667ac70f 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -5,6 +5,9 @@ on: - master - fluent-package-v5 pull_request: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build diff --git a/.github/workflows/yum-arm.yml b/.github/workflows/yum-arm.yml index 0d0ada3d3..85bf679e9 100644 --- a/.github/workflows/yum-arm.yml +++ b/.github/workflows/yum-arm.yml @@ -1,6 +1,9 @@ name: Yum based Linux (AArch64) on: workflow_dispatch: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build diff --git a/.github/workflows/yum.yml b/.github/workflows/yum.yml index dc82acd8b..5fb358b12 100644 --- a/.github/workflows/yum.yml +++ b/.github/workflows/yum.yml @@ -5,6 +5,9 @@ on: - master - fluent-package-v5 pull_request: +concurrency: + group: ${{ github.head_ref || github.sha }}-${{ github.workflow }} + cancel-in-progress: true jobs: build: name: Build