Class: Fastlane::Actions::MergeMainToDevelopAction
- Inherits:
-
Action
- Object
- Action
- Fastlane::Actions::MergeMainToDevelopAction
- Defined in:
- lib/fastlane/plugin/stream_actions/actions/merge_main_to_develop.rb
Documentation collapse
Class Method Summary collapse
Class Method Details
.available_options ⇒ Object
24 25 26 |
# File 'lib/fastlane/plugin/stream_actions/actions/merge_main_to_develop.rb', line 24 def self. [] end |
.description ⇒ Object
20 21 22 |
# File 'lib/fastlane/plugin/stream_actions/actions/merge_main_to_develop.rb', line 20 def self.description 'Merge main branch to develop' end |
.is_supported?(platform) ⇒ Boolean
28 29 30 |
# File 'lib/fastlane/plugin/stream_actions/actions/merge_main_to_develop.rb', line 28 def self.is_supported?(platform) true end |
.run(params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/fastlane/plugin/stream_actions/actions/merge_main_to_develop.rb', line 4 def self.run(params) other_action.ensure_git_status_clean sh('git config pull.ff only') sh('git fetch --all --tags --prune') sh('git checkout main') sh('git pull origin main --ff-only') sh('git checkout develop') sh('git pull origin develop --ff-only') sh('git merge main') sh('git push origin develop') end |