Skip to content

Commit

Permalink
update version for hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
kshann committed Dec 4, 2024
1 parent f8f3d4d commit 691aa0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def self.prepare_hotfix_branch(github_token, platform, other_action, options)
source_version = validate_version_exists(version)
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)
increment_build_number(platform, options, other_action)
Helper::GitHubActionsHelper.set_output("release_branch_name", release_branch_name)

Expand Down
4 changes: 4 additions & 0 deletions spec/ddg_apple_automation_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ def load_file(file)
allow(Fastlane::Helper::DdgAppleAutomationHelper).to receive(:create_hotfix_branch)
.with(platform, source_version, new_version).and_return(release_branch_name)

allow(Fastlane::Helper::DdgAppleAutomationHelper).to receive(:update_version_config)
.with(new_version, other_action)

allow(Fastlane::Helper::DdgAppleAutomationHelper).to receive(:increment_build_number)
.with(platform, options, other_action)

Expand All @@ -225,6 +228,7 @@ def load_file(file)
expect(Fastlane::Helper::DdgAppleAutomationHelper).to have_received(:validate_version_exists).with(version)
expect(Fastlane::Helper::DdgAppleAutomationHelper).to have_received(:validate_hotfix_version).with(source_version)
expect(Fastlane::Helper::DdgAppleAutomationHelper).to have_received(:create_hotfix_branch).with(platform, source_version, new_version)
expect(Fastlane::Helper::DdgAppleAutomationHelper).to have_received(:update_version_config).with(new_version, other_action)
expect(Fastlane::Helper::DdgAppleAutomationHelper).to have_received(:increment_build_number).with(platform, options, other_action)
expect(Fastlane::Helper::GitHubActionsHelper).to have_received(:set_output).with("last_release", source_version)
expect(Fastlane::Helper::GitHubActionsHelper).to have_received(:set_output).with("release_branch_name", release_branch_name)
Expand Down

0 comments on commit 691aa0a

Please sign in to comment.