From d3080bba7d79da7a9bdf7ca46c57b1d272c9058e Mon Sep 17 00:00:00 2001 From: liyi Date: Fri, 9 May 2025 17:03:55 +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 --- android/fastlane/Fastfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/android/fastlane/Fastfile b/android/fastlane/Fastfile index a99f62f0..2c66fff4 100644 --- a/android/fastlane/Fastfile +++ b/android/fastlane/Fastfile @@ -90,7 +90,7 @@ platform :android do print_log "build flavor for: #{flavor}" build_number = Time.now.strftime("%Y%m%d%H") print_log "BuildNo #{build_number}" - build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0] + build_version = $current_tag.match(/^(sky_)?v(\d+\.\d+\.\d+)/).captures.last print_log "buildVersion #{build_version}" commit_hash = last_git_commit short_hash = commit_hash[:abbreviated_commit_hash] @@ -112,7 +112,7 @@ platform :android do print_log "build flavor for: #{flavor}" build_number = Time.now.strftime("%Y%m%d%H") print_log "BuildNo #{build_number}" - build_version = $current_tag.match(/^v(\d+\.\d+\.\d+)/).captures[0] + build_version = $current_tag.match(/^(sky_)?v(\d+\.\d+\.\d+)/).captures.last print_log "buildVersion #{build_version}" commit_hash = last_git_commit short_hash = commit_hash[:abbreviated_commit_hash]