From 5e39e7993425f79570d4469a34b145b0ec9c925a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Skaar=2C=20Bj=C3=B8rn-Andre?= Date: Fri, 10 Nov 2023 13:14:25 +0100 Subject: [PATCH] Actually use the correct version in glob expression --- .github/workflows/release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5205f10..68348f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -63,13 +63,14 @@ jobs: env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} run: | - mvn --batch-mode release:prepare -Darguments="-Dmaven.deploy.skip=true -DskipTests" # Get the release version from the pom.xml before the next snapshot increment - VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout) - mvn --batch-mode release:perform + VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout | sed "s/-SNAPSHOT//) TAG=$(git describe --abbrev=0 --tags) echo "version=${VERSION}" >> $GITHUB_OUTPUT echo "tag=${TAG}" >> $GITHUB_OUTPUT + # Perform the release/deploy and increment the version to the next snapshot + mvn --batch-mode release:prepare -Darguments="-Dmaven.deploy.skip=true -DskipTests" + mvn --batch-mode release:perform - name: Create GitHub release draft uses: release-drafter/release-drafter@v5