diff --git a/hack/update/github.go b/hack/update/github.go index 8371296ddf2380f6616a19d0c4e8a0fe40e5d15d..897a36a40475d74e66577753f2837a6cac9dd511 100644 --- a/hack/update/github.go +++ b/hack/update/github.go @@ -221,7 +221,7 @@ func GHReleases(ctx context.Context, owner, repo string) (stable, latest string, return "", "", err } for _, rl := range rls { - ver := rl.GetName() + ver := rl.GetTagName() if !semver.IsValid(ver) { continue } diff --git a/hack/update/update.go b/hack/update/update.go index 8cf74d01d8295e1ee28e84bc109f57e5ca3dc1d6..dbf70619995b5734ef2eaf7c09debde504d2da1a 100644 --- a/hack/update/update.go +++ b/hack/update/update.go @@ -88,8 +88,7 @@ func (i *Item) apply(data interface{}) error { if i.Content == nil { return fmt.Errorf("unable to update content: nothing to update") } - org := string(i.Content) - str := org + str := string(i.Content) for src, dst := range i.Replace { out, err := ParseTmpl(dst, data, "") if err != nil {