Skip to content

Commit

Permalink
release branch rename
Browse files Browse the repository at this point in the history
  • Loading branch information
kshann committed Jan 17, 2025
1 parent 1b382a1 commit d6f3e11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,10 @@ def self.setup_constants(platform)
end

def self.run(params)
other_action.ensure_git_branch(branch: "^.+(release|hotfix)/.+$")
platform = params[:platform] || Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
other_action.ensure_git_branch(branch: "^.+(release|hotfix)/#{platform}/.+$")
Helper::GitHelper.setup_git_user

params[:platform] ||= Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
setup_constants(params[:platform])
setup_constants(platform)

tag_and_release_output = create_tag_and_github_release(params[:is_prerelease], params[:github_token])
Helper::GitHubActionsHelper.set_output("tag", tag_and_release_output[:tag])
Expand Down
2 changes: 1 addition & 1 deletion spec/tag_release_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@
describe "#merge_or_delete_branch" do
subject { Fastlane::Actions::TagReleaseAction.merge_or_delete_branch(@params) }

let (:branch) { "release/1.1.0" }
let (:branch) { "release/ios/1.1.0" }
let (:other_action) { double(git_branch: branch) }

platform_contexts = [
Expand Down

0 comments on commit d6f3e11

Please sign in to comment.