mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-01-04 03:11:55 +02:00
Merge remote-tracking branch 'origin/master' into zip
This commit is contained in:
commit
b786217025
@ -83,6 +83,7 @@ func (Pipe) Run(config config.ProjectConfig) error {
|
||||
)
|
||||
return err
|
||||
}
|
||||
|
||||
func sha(client *github.Client, owner, repo, name string, out bytes.Buffer) (*string, error) {
|
||||
file, _, _, err := client.Repositories.GetContents(
|
||||
owner, repo, name, &github.RepositoryContentGetOptions{},
|
||||
@ -90,7 +91,7 @@ func sha(client *github.Client, owner, repo, name string, out bytes.Buffer) (*st
|
||||
if err == nil {
|
||||
return file.SHA, err
|
||||
}
|
||||
return github.String(fmt.Sprintf("%s", sha256.Sum256(out.Bytes()))), err
|
||||
return github.String(fmt.Sprintf("%s", sha256.Sum256(out.Bytes()))), nil
|
||||
}
|
||||
|
||||
func buildFormulae(config config.ProjectConfig, client *github.Client) (bytes.Buffer, error) {
|
||||
|
Loading…
Reference in New Issue
Block a user