You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2025/08/12 07:14:42 UTC

(maven) branch master updated: Allow single build per branch or pull request

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/master by this push:
     new c4cbc3828f Allow single build per branch or pull request
c4cbc3828f is described below

commit c4cbc3828f8056d7249c1443cb14635fe9c3137e
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Tue Aug 12 00:00:03 2025 +0200

    Allow single build per branch or pull request
    
    As build takes a long time when a new commit is pushed,
    we should cancel previous build and build only the last one.
---
 .github/workflows/maven.yml | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index f55517fa97..e7baf90aad 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -23,6 +23,11 @@ on:
   pull_request:
     branches: [ master ]
 
+# allow single build per branch or PR
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 # clear all permissions for GITHUB_TOKEN
 permissions: {}