fix IsNew() func, include LICENSE in goreleaser

This commit is contained in:
Harvey Tindall
2021-03-07 16:45:35 +00:00
parent f685582e1a
commit 21490faa9e
3 changed files with 3 additions and 2 deletions
+1 -2
View File
@@ -124,7 +124,6 @@ type Updater struct {
func newUpdater(buildroneURL, namespace, repo, version, commit, buildType string) *Updater {
bType := off
fmt.Println("BT", buildType)
tag := ""
switch buildType {
case "binary":
@@ -202,7 +201,7 @@ func (ud *Updater) GetTag() (Tag, int, error) {
}
func (t *Tag) IsNew() bool {
return t.Version == version
return t.Version != version
}
func (ud *Updater) getRelease() (release GHRelease, status int, err error) {