diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a2a8cf1..80ec1fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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