Skip to content

Commit 4d2547c

Browse files
committed
library-api: deploy fix
1 parent d46d199 commit 4d2547c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
id: extract_version
4343
run: |
4444
cd library-api
45-
VERSION=$(devbox run -q -- mvn help:evaluate -Dexpression=project.version -q -DforceStdout | tr -d '\n' | xargs)
45+
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)
4646
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
4747
# Create revision-safe version string (replace dots with dashes for Cloud Run)
4848
REVISION_VERSION=$(echo "${VERSION}" | tr '.' '-')

0 commit comments

Comments
 (0)