Fix: Trim whitespace from version string in release workflow

Co-authored-by: Stalin-143 <161853795+Stalin-143@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-04 16:52:22 +00:00
parent 769ac75532
commit 2dc0b9dd3a
+2
View File
@@ -139,6 +139,8 @@ jobs:
else
VERSION="${{ inputs.version }}"
fi
# Trim leading and trailing whitespace
VERSION=$(echo "$VERSION" | xargs)
echo "version=$VERSION" >> $GITHUB_OUTPUT
# Determine if it's a prerelease (contains hyphen after version number)
if [[ "$VERSION" =~ ^v[0-9]+\.[0-9]+\.[0-9]+-.+ ]]; then