Skip to content

Commit

Permalink
Fix #17 incorrect minor version calcuation
Browse files Browse the repository at this point in the history
  • Loading branch information
innobead committed Sep 9, 2020
1 parent 1a747b0 commit 9eef28e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/util/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ done:
}

if releaseVersion.MajorMinorString() != afterVersion.MajorMinorString() {
if releaseVersion.Minor.ToInt() > afterVersion.Minor.ToInt() {
continue
}

if afterVersion.Minor.ToInt()-1 < 0 {
return nil, errors.New("unexpected error, out of range of minor versions")
}
Expand Down

0 comments on commit 9eef28e

Please sign in to comment.