Skip to content

Commit

Permalink
fix: log deleted draft release
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Aug 21, 2022
1 parent 95bba02 commit abe63e3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/client/github.go
Expand Up @@ -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 {
Expand Down

0 comments on commit abe63e3

Please sign in to comment.