diff --git a/.github/workflows/release-snapshot.yml b/.github/workflows/release-snapshot.yml index 05408e11..bdf1c14d 100644 --- a/.github/workflows/release-snapshot.yml +++ b/.github/workflows/release-snapshot.yml @@ -55,10 +55,12 @@ jobs: - name: Retrieve and export project version id: project-version run: | - version=$(./mvnw help:evaluate -Dexpression=project.version -q -DforceStdout) + echo "foo" + version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout -X) + echo "Exit code: $?" echo "Project version: ${version}" echo "version=${version}" >> $GITHUB_OUTPUT - + - name: Override project version if requested id: snapshot-version run: | @@ -78,4 +80,4 @@ jobs: - prepare-version with: ref: main - version: ${{needs.prepare-version.outputs.version}} \ No newline at end of file + version: ${{needs.prepare-version.outputs.version}}