From ae21f0364e31024597df7bbd4433b55565779d62 Mon Sep 17 00:00:00 2001 From: Robert Savage Date: Wed, 14 Jul 2021 09:57:58 -0400 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d27e3080..2498d552 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,24 +10,10 @@ jobs: steps: - uses: actions/checkout@v2 - name: Extract Project Version - run: echo ::set-output name=version::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) + run: echo ::set-output name=version::$(mvn -q org.codehaus.mojo:build-helper-maven-plugin:3.2.0:parse-version -Dexec.executable=echo -Dexec.args='${parsedVersion.majorVersion}.${parsedVersion.minorVersion}' --non-recursive exec:exec) id: project - - name: Parse Project Version (semver) - id: semver_parser - uses: booxmedialtd/ws-action-parse-semver@v1 - with: - input_string: '${{ steps.project.outputs.version }}' - - name: Use parsed semver - run: | - echo "v${{ steps.semver_parser.outputs.major }}" - echo "v${{ steps.semver_parser.outputs.minor }}" - echo "v${{ steps.semver_parser.outputs.patch }}" - echo "v${{ steps.semver_parser.outputs.prerelease }}" - echo "v${{ steps.semver_parser.outputs.build }}" - echo "v${{ steps.semver_parser.outputs.fullversion }}" - name: Show Project Release Version - run: echo Pi4J Project Version ${{ steps.semver_parser.outputs.major }}.${{ steps.semver_parser.outputs.minor }} - + run: echo Pi4J Project Version ${{ steps.project.outputs.version }} - name: Get latest Docker image run: docker pull pi4j/pi4j-builder:2.0 - name: Configure Git user