From a624ca234a219bdd74e030209a97679a0658a8f1 Mon Sep 17 00:00:00 2001 From: Jorge Bornhausen Date: Thu, 9 Jan 2025 10:19:36 +0100 Subject: [PATCH] ci(github-actions): fix release workflow not using metadata versions --- .github/workflows/release.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 688f36e..9dfa3b1 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -38,6 +38,11 @@ jobs: echo '::error::Next development version should be a SNAPSHOT version.' exit 1 + - name: Set environment variables + run: | + echo "CURRENT_VERSION=${{steps.metadata.outputs.current-version}}" >> $GITHUB_ENV + echo "NEXT_VERSION=${{steps.metadata.outputs.next-version}}" >> $GITHUB_ENV + - name: Configure SSH and Git env: SSH_DIR: /root/.ssh @@ -68,4 +73,4 @@ jobs: run: ./mvnw $COMMON_MAVEN_OPTS quarkus:go-offline - name: Prepare release - run: ./mvnw $COMMON_MAVEN_OPTS release:prepare + run: ./mvnw $COMMON_MAVEN_OPTS release:prepare -DreleaseVersion=${CURRENT_VERSION} -DdevelopmentVersion=${NEXT_VERSION} -- 2.47.2