Skip to content

Commit 72a0d0e

Browse files
committed
Fix actions\build to use mvn help:evaluate
Since there is no `revision` property in POM, we cannot use `sed` command to extract project version from the POM. * Use more Maven-friendly `mvn help:evaluate -Dexpression="project.version" -q -DforceStdout` command to get the current project version * Remove tentative `finish_release_tmp.yml` since `actions\build` has been fixed now
1 parent 6cb5d7a commit 72a0d0e

File tree

2 files changed

+1
-30
lines changed

2 files changed

+1
-30
lines changed

.github/actions/build/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ runs:
3939
id: read-version
4040
shell: bash
4141
run: |
42-
version=$(sed -n 's/^.*<revision>\(.*\)<\/revision>.*$/\1/p' pom.xml)
42+
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
4343
echo "Version is $version"
4444
echo "version=$version" >> $GITHUB_OUTPUT

.github/workflows/finish_release_tmp.yml

-29
This file was deleted.

0 commit comments

Comments
 (0)