We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d46d199 commit 4d2547cCopy full SHA for 4d2547c
.github/workflows/deploy-library-api.yml
@@ -42,7 +42,7 @@ jobs:
42
id: extract_version
43
run: |
44
cd library-api
45
- VERSION=$(devbox run -q -- mvn help:evaluate -Dexpression=project.version -q -DforceStdout | tr -d '\n' | xargs)
+ VERSION=$(devbox run -q -- mvn help:evaluate -Dexpression=project.version -q -DforceStdout 2>/dev/null | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$' | head -1 | tr -d '\n' | xargs)
46
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
47
# Create revision-safe version string (replace dots with dashes for Cloud Run)
48
REVISION_VERSION=$(echo "${VERSION}" | tr '.' '-')
0 commit comments