Compare commits

...

2 Commits

Author SHA1 Message Date
cff062a9b0 Merge branch 'main' of https://gitea.dikurium.ch/InnoPeak/drone-gitea-release
Some checks failed
continuous-integration/drone/push Build is failing
2024-06-27 16:20:14 +02:00
7e02953285 feat: add error handling to fetching git tags if none found 2024-06-27 16:20:14 +02:00

View File

@ -62,7 +62,9 @@ func getLatestGitTag(options ...GetLatestGitTagOption) (tag string, err error) {
tag = strings.Join(parts[2:], "/")
}
fmt.Println(tag)
if tag == "" {
return tag, fmt.Errorf("couldn't find any git tags")
}
return
}