fix(workflow): ensure version suffix is only removed if defined

This commit is contained in:
2026-05-06 22:05:20 +08:00
parent 66a44b739d
commit cce9abd3ed
@@ -701,7 +701,9 @@ jobs:
[ -e "${candidate}" ] || continue
name="${candidate##*/}"
version="${name#${prefix}}"
if [ -n "${suffix}" ]; then
version="${version%${suffix}}"
fi
case "${version}" in
*[!0-9.]*|""|*.*.*.*)