From a1cb4f6138e4b846bae49ad7514202f5e4bf8dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Pupier?= Date: Fri, 5 Jun 2026 15:54:35 +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/app.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 63122e63f9f..e269b6df61e 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -8,6 +8,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: ${{ github.event_name == 'pull_request' }} + env: REGISTRY: ghcr.io TAG: 4.18.1