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