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
This commit is contained in:
2
.github/actions/build/action.yml
vendored
2
.github/actions/build/action.yml
vendored
@@ -39,6 +39,6 @@ runs:
|
||||
id: read-version
|
||||
shell: bash
|
||||
run: |
|
||||
version=$(sed -n 's/^.*<revision>\(.*\)<\/revision>.*$/\1/p' pom.xml)
|
||||
version=$(mvn help:evaluate -Dexpression="project.version" -q -DforceStdout)
|
||||
echo "Version is $version"
|
||||
echo "version=$version" >> $GITHUB_OUTPUT
|
||||
|
||||
Reference in New Issue
Block a user