Skip to content

Commit 246bc25

Browse files
committed
Add v0.0.0 pseudo-version when determining latest release
On-behalf-of: SAP <[email protected]> Signed-off-by: Marvin Beckers <[email protected]>
1 parent 9c83588 commit 246bc25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/scripts/deploy-docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if [[ -n "${BRANCH:-}" ]]; then
4949
MIKE_OPTIONS+=(--branch "$BRANCH")
5050
fi
5151

52-
LATEST=$(git describe --tags --match="v[0-9]*" `git rev-list --tags --max-count=1` | grep -o '^v[0-9]\+\.[0-9]\+')
52+
LATEST=$(git describe --tags --match="v[0-9]*" `git rev-list --tags --max-count=1` || echo "v0.0.0" | grep -o '^v[0-9]\+\.[0-9]\+')
5353
if [[ "${LATEST:-}" == "${VERSION:-}" ]]; then
5454
MIKE_DEPLOY_OPTIONS+=(--update-aliases)
5555
MIKE_ALIASES+=(latest)

0 commit comments

Comments
 (0)