From 84aa32cac3f53a6f80855ccc3903b8a056b5aca1 Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Wed, 10 May 2023 17:14:15 +0200 Subject: [PATCH] Fix revision --- .github/workflows/maven-publish.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index d1b7dc7..63edfca 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -34,6 +34,7 @@ jobs: export REVISION=${{ steps.branch_name.outputs.SOURCE_TAG_VERSION }} echo "REVISION=$REVISION" >> $GITHUB_ENV + cat $GITHUB_ENV >> github.env - name: Set up JDK 17 (Snapshot) if: ${{ !startsWith(github.ref, 'refs/tags/v') }} uses: actions/setup-java@v3 @@ -71,7 +72,7 @@ jobs: set -xeo pipefail echo "REVISION: $REVISION" - mvn -B clean -Drevision="${REVISION}" deploy + mvn -B clean -Drevision="$REVISION" deploy echo "Done." env: MAVEN_USERNAME: ${{ secrets.MCHV_USERNAME }}