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

pkarwasz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/logging-log4j-jmx-gui.git

commit c47d478318e2d2ec258d64667bc3b0d7f7c89008
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Thu Oct 19 19:22:21 2023 +0200

    Improve concurrent of release builds
---
 .github/workflows/build.yaml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml
index a2060f5..d1c192a 100644
--- a/.github/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -32,6 +32,12 @@ on:
       - "**.md"
       - "**.txt"
 
+# If the branch is 'main' run once per commit.
+# If the branch is 'release/*' allow only one concurrent run.
+concurrency:
+  group: ${{ github.ref_name == 'main' && github.ref || github.ref_name }}
+  cancel-in-progress: true
+
 permissions: read-all
 
 jobs:

Reply via email to