From 63566560cf129f4d4bcf008cea15c58e79bd4c47 Mon Sep 17 00:00:00 2001 From: Hernan Ponce de Leon Date: Thu, 4 Jul 2024 14:55:09 +0200 Subject: [PATCH] Automatically cancel previous CI when new commits are pushed (#700) Signed-off-by: Hernan Ponce de Leon Co-authored-by: Hernan Ponce de Leon --- .github/workflows/maven.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b821688688..3aefcac35a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,6 +3,11 @@ name: Build +# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + on: push: branches: [ master, development ]