fix:调整sky下的ci为master_sky进行生成tag时增加前缀

This commit is contained in:
liyi 2025-05-09 17:11:06 +08:00
parent d3080bba7d
commit 10a67ddf93

View File

@ -15,7 +15,9 @@ if [ "$tags_length" -lt 1 ]; then
next_tag="v1.0.0"
else
newest_tag=$(echo "$tags" | head -n 1)
IFS='.' read -r major minor patch <<< "$newest_tag"
# 去除已有的sky_前缀防止重复
base_tag=${newest_tag#sky_}
IFS='.' read -r major minor patch <<< "$base_tag"
major="${major#v}"
compare_json=""
if [[ "$1" == "generate_tag" ]];then