Skip to content

Instantly share code, notes, and snippets.

@mariia-cherniuk
Last active September 23, 2020 19:20
Show Gist options
  • Save mariia-cherniuk/7a31fd9f7c466c28823940512a568d58 to your computer and use it in GitHub Desktop.
Save mariia-cherniuk/7a31fd9f7c466c28823940512a568d58 to your computer and use it in GitHub Desktop.
desc "Minor version bump"
lane :bump_version do
Actions.sh("git remote set-url origin [email protected]:your_app_git_url")
minor_version_bump(branch: ENV['DEVELOP_BRANCH'])
end
private_lane :minor_version_bump do |options|
reset_git_repo(force: true, skip_clean: true)
git_checkout(remote_branch: options[:branch])
git_pull
increment_version_number(bump_type: "minor")
commit_version_bump(message: "Fastlane - Minor version Bump [skip ci]", xcodeproj: ENV['MAIN_PROJECT'], no_verify: true)
push_to_git_remote(tags: false, no_verify: true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment