From 063b10108963cf669ee5cf1f5d4084e1cc6aef77 Mon Sep 17 00:00:00 2001 From: Kieran Date: Wed, 4 Dec 2024 14:15:53 +1100 Subject: [PATCH] update version in hotfix flow --- .../ddg_apple_automation/helper/ddg_apple_automation_helper.rb | 1 + spec/ddg_apple_automation_helper_spec.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb index 3d94aae..d4338cf 100644 --- a/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb +++ b/lib/fastlane/plugin/ddg_apple_automation/helper/ddg_apple_automation_helper.rb @@ -143,6 +143,7 @@ def self.prepare_hotfix_branch(github_token, platform, other_action, options) new_version = validate_hotfix_version(source_version) release_branch_name = create_hotfix_branch(platform, source_version, new_version) update_version_config(new_version, other_action) + other_action.push_to_git_remote increment_build_number(platform, options, other_action) Helper::GitHubActionsHelper.set_output("release_branch_name", release_branch_name) diff --git a/spec/ddg_apple_automation_helper_spec.rb b/spec/ddg_apple_automation_helper_spec.rb index a166646..6396ba1 100644 --- a/spec/ddg_apple_automation_helper_spec.rb +++ b/spec/ddg_apple_automation_helper_spec.rb @@ -218,6 +218,8 @@ def load_file(file) allow(Fastlane::Helper::GitHubActionsHelper).to receive(:set_output) + expect(other_action).to receive(:push_to_git_remote) + result_branch, result_version = Fastlane::Helper::DdgAppleAutomationHelper.prepare_hotfix_branch( github_token, platform, other_action, options )