From 9822c7dad409ff4661d18ce6756016639b6592b9 Mon Sep 17 00:00:00 2001 From: "Visser, M (Martin)" Date: Mon, 11 May 2026 08:42:45 +0200 Subject: [PATCH] Update release commit message to use evaluated project version --- .github/workflows/actions/cd/action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/actions/cd/action.yml b/.github/workflows/actions/cd/action.yml index ab16b9e..1202c84 100644 --- a/.github/workflows/actions/cd/action.yml +++ b/.github/workflows/actions/cd/action.yml @@ -69,7 +69,8 @@ runs: echo "::error::No release version change found in pom.xml" exit 1 fi - git commit -m "Release ${{ inputs.new-version }}" + RELEASE_VERSION="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" + git commit -m "Release ${RELEASE_VERSION}" git push "https://x-access-token:${{ inputs.version-push-pat }}@github.com/${{ github.repository }}.git" "HEAD:${{ github.ref_name }}" - name: Set release metadata env variables shell: bash