Skip to content

Commit bb6dc70

Browse files
committed
library-api: yet another fix for getting version during deployment
1 parent dc9a260 commit bb6dc70

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/workflows/deploy-library-api.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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'

devbox.json

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
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"

0 commit comments

Comments
 (0)