fix: trim whitespace from workflow_dispatch tag input
This commit is contained in:
parent
8e5de23f1c
commit
efdea3b13d
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in New Issue