fixed 项目中发行版

This commit is contained in:
xiaoxiaoqiong 2022-03-08 14:01:44 +08:00
parent fc3344c78a
commit 747bc4ab45
1 changed files with 1 additions and 1 deletions

View File

@ -33,6 +33,6 @@ class VersionRelease < ApplicationRecord
def update_sha
git_release = Gitea::Versions::GetService.call(user.gitea_token, repository&.owner&.login, repository&.identifier, version_gid)
self.update(sha: git_release["sha"])
self.update(sha: git_release["sha"]) if git_release.present?
end
end