We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23033cd commit 1e4b225Copy full SHA for 1e4b225
1 file changed
.github/workflows/release.yml
@@ -57,6 +57,13 @@ jobs:
57
run: |
58
# Extract version from tag (e.g., v1.2.3 -> 1.2.3, also handles 1.2.3)
59
TAG_VERSION=$(echo "$GITHUB_REF_NAME" | sed 's/^v//')
60
+
61
+ # Fix: If version is format 1.2, append .0 to make it 1.2.0
62
+ if [[ "$TAG_VERSION" =~ ^[0-9]+\.[0-9]+$ ]]; then
63
+ TAG_VERSION="${TAG_VERSION}.0"
64
+ echo "Formatted version to semantic version: $TAG_VERSION"
65
+ fi
66
67
# Validate version format
68
if [[ ! "$TAG_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
69
echo "Error: Invalid version format: $TAG_VERSION"
0 commit comments