From 87e3469b57da1c01997df1c00491e0d3a36cd965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 5 Jun 2026 15:41:15 +0200 Subject: [PATCH] Configure GitHub workflow to cancel previous PR check in case of new commits on same PR MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will save some resources in case of new commit on a branch PR and PR checks were not finished Apache committers can see recommendations here https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices Signed-off-by: Aurélien Pupier --- .github/workflows/master-pr-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/master-pr-build.yml b/.github/workflows/master-pr-build.yml index c118c3cb5..67d03c030 100644 --- a/.github/workflows/master-pr-build.yml +++ b/.github/workflows/master-pr-build.yml @@ -21,6 +21,11 @@ on: pull_request: branches: - main + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: build: runs-on: ubuntu-latest