Fix assets on release webhook (#8283)
This commit is contained in:
parent
0ed5a647dd
commit
e51d91a258
1 changed files with 4 additions and 2 deletions
|
@ -397,13 +397,15 @@ func UpdateRelease(doer *User, gitRepo *git.Repository, rel *Release, attachment
|
|||
return err
|
||||
}
|
||||
|
||||
if err = addReleaseAttachments(rel.ID, attachmentUUIDs); err != nil {
|
||||
log.Error("addReleaseAttachments: %v", err)
|
||||
}
|
||||
|
||||
err = rel.loadAttributes(x)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
err = addReleaseAttachments(rel.ID, attachmentUUIDs)
|
||||
|
||||
mode, _ := AccessLevel(doer, rel.Repo)
|
||||
if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{
|
||||
Action: api.HookReleaseUpdated,
|
||||
|
|
Reference in a new issue