You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by pk...@apache.org on 2022/09/14 06:09:59 UTC

[logging-log4j2] branch release-2.x updated: Do not deploy GA releases

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

pkarwasz pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new 249925ab89 Do not deploy GA releases
249925ab89 is described below

commit 249925ab89655bd024fa2730bf03735e60c646d6
Author: Piotr P. Karwasz <pi...@karwasz.org>
AuthorDate: Wed Sep 14 08:05:28 2022 +0200

    Do not deploy GA releases
    
    The `deploy` workflow will fail anyway, but tagged release commits
    should not have test failures.
---
 .github/workflows/build.yml | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index cf320d62aa..7b5d294a9f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -139,7 +139,16 @@ jobs:
       - name: Inspect environment
         run: env | grep '^JAVA'
 
+      - name: Inspect project version
+        run: |
+          echo ::set-output name=version::$(./mvnw \
+            -q -Dexec.executable=echo \
+            -Dexec.args='${project.version}' --non-recursive exec:exec)
+        id: get_version
+
       - name: Maven "deploy"
+        # Do not deploy release versions
+        if: ${{ endsWith(steps.get_version.outputs.version, '-SNAPSHOT') }}
         timeout-minutes: 15
         shell: bash
         # `package install:install deploy:deploy` goal is needed to deploy without configuring the plugin in the POM.