Change begin location in increase release tag

This commit is contained in:
Wedge 2018-10-30 11:09:36 +03:00
parent bec87c8077
commit f34089dc7e
1 changed files with 3 additions and 3 deletions

View File

@ -221,10 +221,10 @@ class Project < ActiveRecord::Base
return false return false
end end
if file if file
begin
decoded_content = Base64.decode64(file.content) decoded_content = Base64.decode64(file.content)
new_content = Project.replace_release_tag decoded_content new_content = Project.replace_release_tag decoded_content
return if new_content == decoded_content return if new_content == decoded_content
begin
Github_blobs_api.update_contents github_get_organization + '/' + name, name + '.spec',\ Github_blobs_api.update_contents github_get_organization + '/' + name, name + '.spec',\
message, file.sha, new_content, branch: project_version message, file.sha, new_content, branch: project_version
rescue => e rescue => e