Skip to content

Commit

Permalink
Remove debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Sep 15, 2024
1 parent 0cd888e commit 658b6a7
Showing 1 changed file with 18 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,24 +31,24 @@ def self.run(params)
platform = params[:platform] || Actions.lane_context[Actions::SharedValues::PLATFORM_NAME]
setup_constants(platform)

# other_action.ensure_git_branch(branch: "^(:?release|hotfix)/.*$")
# Helper::GitHelper.setup_git_user
other_action.ensure_git_branch(branch: "^(:?release|hotfix)/.*$")
Helper::GitHelper.setup_git_user

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])

# begin
# if params[:is_prerelease]
# Helper::GitHelper.merge_branch(@constants[:repo_name], params[:branch], params[:base_branch], params[:github_elevated_permissions_token] || params[:github_token])
# else
# Helper::GitHelper.delete_branch(@constants[:repo_name], params[:branch], params[:github_token])
# end
# tag_and_release_output[:merge_or_delete_failed] = false
# rescue StandardError
# tag_and_release_output[:merge_or_delete_failed] = true
# end

# report_status(params.values.merge(tag_and_release_output))
Helper::GitHubActionsHelper.set_output("tag", tag_and_release_output[:tag])

begin
if params[:is_prerelease]
Helper::GitHelper.merge_branch(@constants[:repo_name], params[:branch], params[:base_branch], params[:github_elevated_permissions_token] || params[:github_token])
else
Helper::GitHelper.delete_branch(@constants[:repo_name], params[:branch], params[:github_token])
end
tag_and_release_output[:merge_or_delete_failed] = false
rescue StandardError
tag_and_release_output[:merge_or_delete_failed] = true
end

report_status(params.values.merge(tag_and_release_output))
end

def self.report_status(params)
Expand Down Expand Up @@ -125,9 +125,8 @@ def self.create_tag_and_github_release(is_prerelease, github_token)
tag_created = false

begin
tag = "1.106.0-261" # for testing
# other_action.add_git_tag(tag: tag)
# other_action.push_git_tags(tag: tag)
other_action.add_git_tag(tag: tag)
other_action.push_git_tags(tag: tag)
tag_created = true
rescue StandardError => e
UI.important("Failed to create and push tag: #{e}")
Expand Down

0 comments on commit 658b6a7

Please sign in to comment.