This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new a3b60c2134 Fix snapshot deployment
a3b60c2134 is described below
commit a3b60c2134c40f26a1255ce8caf0eae426fd1a15
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed Mar 15 07:24:03 2023 +0100
Fix snapshot deployment
---
.github/workflows/build.yml | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6b129874b5..b7049edee0 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -120,7 +120,7 @@ jobs:
runs-on: ubuntu-latest
needs: build
- if: github.repository == 'apache/logging-log4j2' && github.ref ==
'refs/heads/2.x'
+ if: github.repository == 'apache/logging-log4j2' && github.ref == '2.x'
steps:
@@ -142,15 +142,17 @@ jobs:
cache: maven
- name: Inspect project version
+ env:
+ # Overrides defaults
+ MAVEN_ARGS:
run: |
- echo ::set-output name=version::$(./mvnw \
- -q -Dexec.executable=echo \
- -Dexec.args='${project.version}' --non-recursive exec:exec)
- id: get_version
+ VERSION=$(./mvnw -q -N help:evaluate -DforceStdout=true
-Dexpression=project.version)
+ echo $VERSION
+ echo project_version=$VERSION >> GITHUB_ENV
- name: Deploy artifacts
# Do not deploy release versions
- if: ${{ endsWith(steps.get_version.outputs.version, '-SNAPSHOT') }}
+ if: ${{ endsWith(env.project_version, '-SNAPSHOT') }}
timeout-minutes: 15
shell: bash
# `package install:install deploy:deploy` goal is needed to deploy
without configuring the plugin in the POM.