From 0350777054c0c3c82fcfdb37c31584381460c34b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Mon, 8 Jun 2026 14:57:14 +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/linux.yml | 4 ++++ .github/workflows/windows.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b10cdf14ae2..f7473fb4f21 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -26,6 +26,10 @@ env: # This will need updating as the ubuntu-latest image changes: PHP_FPM: "/usr/sbin/php-fpm8.3" +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: strategy: diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ee764d3bcf5..5cf01fafe99 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -18,6 +18,10 @@ on: - CHANGES - changes-entries/* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + jobs: build: strategy: