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 2022/01/27 20:38:05 UTC

[maven-gh-actions-shared] branch concurrency created (now 4ef66aa)

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

sjaranowski pushed a change to branch concurrency
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git.


      at 4ef66aa  Allow single build per branch or PR

This branch includes the following new commits:

     new 4ef66aa  Allow single build per branch or PR

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[maven-gh-actions-shared] 01/01: Allow single build per branch or PR

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch concurrency
in repository https://gitbox.apache.org/repos/asf/maven-gh-actions-shared.git

commit 4ef66aaa9ba73d07a4ee69df2c8f69cf91637331
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Thu Jan 27 21:33:13 2022 +0100

    Allow single build per branch or PR
    
    Some build can take long time
    so allow only single build at the same time
---
 .github/workflows/maven-verify-test.yml | 4 ++--
 .github/workflows/maven-verify.yml      | 5 +++++
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven-verify-test.yml b/.github/workflows/maven-verify-test.yml
index 1af31db..2ef5696 100644
--- a/.github/workflows/maven-verify-test.yml
+++ b/.github/workflows/maven-verify-test.yml
@@ -24,12 +24,12 @@ jobs:
   verify-1:
     name: Verify 1
     # for testing purpose you can change to your fork and branch
-    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2
+    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@concurrency
 
   verify-2:
     name: Verify 2
     # for testing purpose you can change to your fork and branch
-    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@v2
+    uses: apache/maven-gh-actions-shared/.github/workflows/maven-verify.yml@concurrency
     with:
       ff-goal: test
       verify-goal: clean install
diff --git a/.github/workflows/maven-verify.yml b/.github/workflows/maven-verify.yml
index ce175b1..466d5a6 100644
--- a/.github/workflows/maven-verify.yml
+++ b/.github/workflows/maven-verify.yml
@@ -128,6 +128,11 @@ on:
         required: false
         type: string
 
+# allow single build per branch or PR
+concurrency:
+  group: ${{ github.workflow }}-${{ github.ref }}
+  cancel-in-progress: true
+
 jobs:
 
   # verify build on one node - before matrix will start