Skip to content
Permalink
Browse files
fix: log deleted draft release
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 21, 2022
1 parent 95bba02 commit abe63e37b71f17ce9fe517a2acba6bbc6cd712b1
Showing 1 changed file with 9 additions and 0 deletions.
@@ -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 {

0 comments on commit abe63e3

Please sign in to comment.