Skip to content

Commit

Permalink
Add confirmation dialog before pushing to remote
Browse files Browse the repository at this point in the history
  • Loading branch information
spencertransier committed Feb 8, 2024
1 parent 7708c44 commit eee103d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,11 @@ end
new_version = ios_get_app_version(public_version_xcconfig_file: VERSION_FILE_PATH)
ios_update_release_notes(new_version: new_version)

UI.important('Pushing changes to remote and configuring the release on GitHub')
UI.user_error!("Terminating as requested. Don't forget to run the remainder of this automation manually.") unless options[:skip_confirm] || UI.confirm('Do you want to continue?')

push_to_git_remote(tags: false)

setbranchprotection(repository:GHHELPER_REPO, branch: "release/#{new_version}")
setfrozentag(repository:GHHELPER_REPO, milestone: new_version)

Expand Down

0 comments on commit eee103d

Please sign in to comment.