Skip to content

Commit

Permalink
feat: adjust fastlane 3 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjankowski authored Jan 4, 2022
1 parent 6de39ba commit 00d6a1d
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ platform :ios do
puts("version is: #{version}!")
end

sh("git checkout ")
ensure_git_clean(release_branch: release_branch)
update_changelog(version: version)
update_version(version: version)
Expand Down Expand Up @@ -189,6 +190,9 @@ end
end
end

##############################################################################
# GIT
##############################################################################

desc "Ensure git is clean"
private_lane :ensure_git_clean do |options|
Expand All @@ -212,4 +216,14 @@ end
end
end

desc "Ensure git is clean"
private_lane :checkout_to_branch do |options|
release_branch = options[:release_branch]
version = options[:version]

puts("Part 1")
sh("git remote update")
puts("Part 2")
sh("git checkout #{release_branch}")
puts("Part 3")
end

0 comments on commit 00d6a1d

Please sign in to comment.