Change begin location in increase release tag
This commit is contained in:
parent
bec87c8077
commit
f34089dc7e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue