From 52164ecee475f7ef5073dd2a03b06c4af532f43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?T=C3=BAlio=20Magalh=C3=A3es?= <55166462+tuliopereirazup@users.noreply.github.com> Date: Tue, 18 Aug 2020 09:31:28 -0300 Subject: [PATCH] fix: Version name generator (#782) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Túlio Magalhães --- fastlane/Fastfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 4ced57af88..72bc97ed1a 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -116,8 +116,9 @@ lane :deploy do isHotFix = ENV["TAG_NAME"].index("-") if isHotFix - (versionNumber, platformHotfix) = ENV["TAG_NAME"].split("-") - branchName = "release/" + ENV["TAG_NAME"] + tagName = ENV["TAG_NAME"].split("/").last + branchName = "release/" + tagName + (versionNumber, platformHotfix) = tagName.split("-") else versionNumber = last_git_tag(pattern: "*[0-9]") branchName = "master"