fix: trim whitespace from workflow_dispatch tag input

This commit is contained in:
t8y2 committed 2026-05-04 10:17:04 +08:00
1 parent 8e5de23f1c
commit efdea3b13d
1 file changed
+1
+1
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."