File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ jobs:
4242 id : extract_version
4343 working-directory : library-api
4444 run : |
45- VERSION=$(devbox run get-library-api- version)
46- echo "version=$VERSION" >> $GITHUB_OUTPUT
45+ VERSION=$(devbox run -- mvn help:evaluate -Dexpression=project. version -q -DforceStdout | tr -d '\n' | xargs )
46+ echo "version=${ VERSION} " >> " $GITHUB_OUTPUT"
4747 # Create revision-safe version string (replace dots with dashes for Cloud Run)
48- REVISION_VERSION=$(echo "$VERSION" | tr '.' '-')
49- echo "revision_version=$REVISION_VERSION" >> $GITHUB_OUTPUT
50- echo "Extracted version from pom.xml: $VERSION"
51- echo "Revision version: $REVISION_VERSION"
48+ REVISION_VERSION=$(echo "${ VERSION} " | tr '.' '-')
49+ echo "revision_version=${ REVISION_VERSION} " >> " $GITHUB_OUTPUT"
50+ echo "Extracted version from pom.xml: ${ VERSION} "
51+ echo "Revision version: ${ REVISION_VERSION} "
5252
5353 # Validate that git tag exists for this pom.xml version
5454 - name : ' Validate git tag matches pom.xml version'
Original file line number Diff line number Diff line change 2323 " cd library-api" ,
2424 " quarkus build --no-tests"
2525 ],
26- "get-library-api-version" : [
27- " cd library-api" ,
28- " mvn help:evaluate -Dexpression=project.version -q -DforceStdout | xargs"
29- ],
3026 "build-builder-api-ci" : [
3127 " cd builder-api" ,
3228 " quarkus build --no-tests"
You can’t perform that action at this time.
0 commit comments