1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

fix: log deleted draft release

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
Carlos A Becker 2022-08-21 16:02:36 -03:00
parent 95bba02211
commit abe63e37b7
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -387,6 +387,15 @@ func (c *githubClient) deleteExistedDraftRelease(ctx *context.Context, name stri
); err != nil {
return fmt.Errorf("could not delete previous draft release: %w", err)
}
log.WithFields(log.Fields{
"commit": r.GetTargetCommitish(),
"tag": r.GetTagName(),
"name": r.GetName(),
}).Info("deleted previous draft release")
// in theory, there should be only 1 release matching, so we can just return
return nil
}
}
if resp.NextPage == 0 {