Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
fix: Version name generator (#782)
Browse files Browse the repository at this point in the history
Co-authored-by: Túlio Magalhães <[email protected]>
  • Loading branch information
tuliopereirazup and tuliomagalhaes authored Aug 18, 2020
1 parent daa4d56 commit 52164ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 52164ec

Please sign in to comment.