You've already forked goreleaser
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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user