mirror of https://github.com/go-gitea/gitea.git
Fix assets on release webhook (#8283)
This commit is contained in:
parent
0ed5a647dd
commit
e51d91a258
|
@ -397,13 +397,15 @@ func UpdateRelease(doer *User, gitRepo *git.Repository, rel *Release, attachment
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err = addReleaseAttachments(rel.ID, attachmentUUIDs); err != nil {
|
||||||
|
log.Error("addReleaseAttachments: %v", err)
|
||||||
|
}
|
||||||
|
|
||||||
err = rel.loadAttributes(x)
|
err = rel.loadAttributes(x)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = addReleaseAttachments(rel.ID, attachmentUUIDs)
|
|
||||||
|
|
||||||
mode, _ := AccessLevel(doer, rel.Repo)
|
mode, _ := AccessLevel(doer, rel.Repo)
|
||||||
if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{
|
if err1 := PrepareWebhooks(rel.Repo, HookEventRelease, &api.ReleasePayload{
|
||||||
Action: api.HookReleaseUpdated,
|
Action: api.HookReleaseUpdated,
|
||||||
|
|
Loading…
Reference in New Issue