From 2e7cdd11a4446188def5ed69cc226fec850a291d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 8 Jun 2026 15:58:25 +0200 Subject: [PATCH] Configure GitHub workflows to use concurrency cancel-in-progress for pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit see recommended best practices at Apache https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier --- .github/workflows/ci-linux.yml | 4 ++++ .github/workflows/ci-macos.yml | 4 ++++ .github/workflows/license-eyes.yml | 5 +++++ 3 files changed, 13 insertions(+) diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml index b0be2727d3..06c5872156 100644 --- a/.github/workflows/ci-linux.yml +++ b/.github/workflows/ci-linux.yml @@ -13,6 +13,10 @@ on: env: proc_num: $(nproc) +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + # https://github.com/actions/runner-images jobs: compile-with-make: diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index 61d45ac821..4631498d86 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -13,6 +13,10 @@ on: env: proc_num: $(sysctl -n hw.logicalcpu) +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: compile-with-make-cmake-protobuf21: runs-on: macos-latest # https://github.com/actions/runner-images diff --git a/.github/workflows/license-eyes.yml b/.github/workflows/license-eyes.yml index 9ae0977871..3969942453 100644 --- a/.github/workflows/license-eyes.yml +++ b/.github/workflows/license-eyes.yml @@ -22,6 +22,11 @@ on: push: branches: - master + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: license-check: name: "License Check"