fix: trim whitespace from workflow_dispatch tag input

This commit is contained in:
t8y2 2026-05-04 10:17:04 +08:00
parent 8e5de23f1c
commit efdea3b13d
1 changed files with 1 additions and 0 deletions

View File

@ -32,6 +32,7 @@ jobs:
else
TAG="${{ github.event.workflow_run.head_branch }}"
fi
TAG="$(echo "${TAG}" | xargs)"
VERSION="${TAG#v}"
if [[ ! "${VERSION}" =~ ^[0-9]+\.[0-9]+\.[0-9]+ ]]; then
echo "::error::Tag '${TAG}' does not look like a semver version."