fix:调整tag昵称判断规则
This commit is contained in:
parent
a44be677c5
commit
bed58065b0
@ -132,7 +132,12 @@ platform :ios do
|
|||||||
print_log "build flavor: #{flavor}"
|
print_log "build flavor: #{flavor}"
|
||||||
build_number = Time.now.strftime("%Y%m%d%H%M")
|
build_number = Time.now.strftime("%Y%m%d%H%M")
|
||||||
print_log "Build Commits #{build_number}"
|
print_log "Build Commits #{build_number}"
|
||||||
build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0]
|
m = $current_tag.match(/^(sky_)?v(\d+\.\d+\.\d+)/)
|
||||||
|
if m
|
||||||
|
build_version = m.captures.last
|
||||||
|
else
|
||||||
|
UI.user_error!("Tag格式不正确,无法提取版本号: #{$current_tag}")
|
||||||
|
end
|
||||||
print_log "build_version #{build_version}"
|
print_log "build_version #{build_version}"
|
||||||
commit_hash = last_git_commit
|
commit_hash = last_git_commit
|
||||||
short_hash = commit_hash[:abbreviated_commit_hash]
|
short_hash = commit_hash[:abbreviated_commit_hash]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user