fix: trim whitespace from workflow_dispatch tag input
This commit is contained in:
1 parent
8e5de23f1c
commit
efdea3b13d
1 file changed
+1
@@ -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."
|
||||
|
||||
Reference in new issue
Block a user