From 9939685c941d7918d82c4e097c87ea15f5c76b2b Mon Sep 17 00:00:00 2001 From: liyi Date: Fri, 9 May 2025 16:51:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4sky=E4=B8=8B=E7=9A=84ci?= =?UTF-8?q?=E4=B8=BAmaster=5Fsky=E8=BF=9B=E8=A1=8C=E7=94=9F=E6=88=90tag?= =?UTF-8?q?=E6=97=B6=E5=A2=9E=E5=8A=A0=E5=89=8D=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tag_generator.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tag_generator.sh b/tag_generator.sh index b5c16ca8..f83b2c54 100755 --- a/tag_generator.sh +++ b/tag_generator.sh @@ -45,6 +45,13 @@ else done < <(echo "$compare_json" | jq -c '.commits[] | {id: .id, message: .message}') next_tag="v$major.$new_minor.$new_patch" fi + +# 生成新tag名时,若在master_sky分支,加前缀sky_ +branch_name="$CI_COMMIT_BRANCH" +if [[ "$branch_name" == "master_sky" ]]; then + next_tag="sky_${next_tag}" +fi + echo "New Tag:$newest_tag;New version: $next_tag;command: $1" if [[ "$1" == "generate_tag" ]];then if [ "$next_tag" == "$newest_tag" ]; then