Compare commits

...

2 Commits

Author SHA1 Message Date
2386e278c7 Merge branch 'main' of https://gitea.dikurium.ch/InnoPeak/drone-gitea-release into main
Some checks failed
continuous-integration/drone/push Build is failing
2024-10-25 18:16:24 +02:00
66de41874d feat: use time.Time.Before() instead of Sub() 2024-10-25 18:16:24 +02:00

View File

@ -99,7 +99,7 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (string, error) {
return "", fmt.Errorf("error iterating tags %w", err)
}
if tagDate != nil && t.Tagger.When.Sub(*tagDate) > 0 {
if tagDate != nil && t.Tagger.When.Before(*tagDate) {
continue
}