From 83ae46c0d85b069e0da252f35dc2b378346ea3e7 Mon Sep 17 00:00:00 2001 From: OmOmofonmwan Date: Tue, 13 Aug 2024 17:08:16 -0500 Subject: [PATCH 1/2] Updating POM Version action --- .github/workflows/release.yaml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 2b9a968b4..202f34e76 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,11 +38,19 @@ jobs: distribution: 'adopt' java-version: '21' - - name: Get Current Version + # - name: Get Current Version + # id: get_current_version + # run: | + # POM_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) + # echo "::set-output name=POM_VERSION::$POM_VERSION" + + - name: get-pom-version id: get_current_version + uses: PERES-Richard/maven-get-version-action@v3.0.0 + + - name: Print Maven POM project version run: | - POM_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - echo "::set-output name=POM_VERSION::$POM_VERSION" + echo "version = ${{ steps.get_current_version.outputs.version }}" - name: Print Version run: echo ${{steps.get_current_version.outputs.POM_VERSION}} From 8596b7efd73a03a504fd694d0b7c88d68f09c46e Mon Sep 17 00:00:00 2001 From: OmOmofonmwan Date: Tue, 13 Aug 2024 17:08:38 -0500 Subject: [PATCH 2/2] Updating POM Version action --- .github/workflows/release.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 202f34e76..e6cd2367c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -51,6 +51,7 @@ jobs: - name: Print Maven POM project version run: | echo "version = ${{ steps.get_current_version.outputs.version }}" + exit 1 - name: Print Version run: echo ${{steps.get_current_version.outputs.POM_VERSION}}