Skip to content
This repository was archived by the owner on Jan 27, 2026. It is now read-only.

Commit 0648ec5

Browse files
authored
Merge pull request #27 from PostHog/label-fix
labels malformed
2 parents cd00377 + 7d6e2b0 commit 0648ec5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build-release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,11 @@ jobs:
4747
VERSION="${{ github.event.inputs.version }}"
4848
echo "Using manually specified version: ${VERSION}"
4949
else
50-
# Get the latest tag, or use 0.0.0 if no tags exist
51-
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
50+
# Get the latest semver tag (ignore 'latest' tag), or use 0.0.0 if no tags exist
51+
LATEST_TAG=$(git tag -l 'v*.*.*' --sort=-v:refname | head -n 1)
52+
if [ -z "$LATEST_TAG" ]; then
53+
LATEST_TAG="v0.0.0"
54+
fi
5255
# Remove 'v' prefix if present
5356
LATEST_VERSION=${LATEST_TAG#v}
5457

0 commit comments

Comments
 (0)