From 6c701dfb84ca65e0ba5fd3adcdda8d2b4ce3c1ef 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 24a765af5..b1be3c6a4 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 2465b41cd..6dc01ad30 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 5d1988891..b5a30c431 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