1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-07-05 00:59:04 +02:00

fix: improve "pushing" logs for multiple publishers

This commit is contained in:
Carlos Alexandro Becker
2023-05-19 14:10:06 +00:00
parent 779cce7af6
commit dfcd535e31
8 changed files with 28 additions and 13 deletions

View File

@ -201,6 +201,12 @@ func (c *githubClient) CreateFile(
options.Branch = &branch
}
log.
WithField("repository", repo.String()).
WithField("name", repo.Name).
WithField("name", repo.Name).
Info("pushing")
if defBranch != branch && branch != "" {
_, res, err := c.client.Repositories.GetBranch(ctx, repo.Owner, repo.Name, branch, true)
if err != nil && (res == nil || res.StatusCode != 404) {