From 2d491129a22977673b0354d596ad33af03dd11fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 5 Jun 2026 15:47:00 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/master-pr-build.yml b/.github/workflows/master-pr-build.yml index f0edc158..97ee4815 100644 --- a/.github/workflows/master-pr-build.yml +++ b/.github/workflows/master-pr-build.yml @@ -21,6 +21,9 @@ on: pull_request: branches: - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true jobs: build: if: github.repository == 'apache/camel-spring-boot-examples'