feat: ✨ add error handling to fetching git tags if none found
This commit is contained in:
		
							parent
							
								
									643cf127a6
								
							
						
					
					
						commit
						7e02953285
					
				| @ -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 | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user