From cccc97b2f206713bdd34706531da5998dbca15a1 Mon Sep 17 00:00:00 2001 From: Hernan Ponce de Leon Date: Thu, 4 Jul 2024 12:26:40 +0200 Subject: [PATCH 1/2] Automatically cancel previous CI when new commits are pushed Signed-off-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..b67c903e57 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 ] From 1cfcf2bdabf4bb01c7c2741a3777ba2b6f747bed Mon Sep 17 00:00:00 2001 From: Hernan Ponce de Leon Date: Thu, 4 Jul 2024 12:27:57 +0200 Subject: [PATCH 2/2] Testing commit Signed-off-by: Hernan Ponce de Leon --- .github/workflows/maven.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index b67c903e57..3aefcac35a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -3,7 +3,7 @@ name: Build -#https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre +# 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