mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-07-09 00:37:31 +00:00
fix: Don't fail on getTag (#98)
This commit is contained in:
+5
-1
@@ -17,7 +17,11 @@ export async function isTagDirty(currentTag: string): Promise<boolean> {
|
||||
}
|
||||
|
||||
export async function getTag(): Promise<string> {
|
||||
return await git(['describe', '--tags', '--abbrev=0']);
|
||||
try {
|
||||
return await git(['describe', '--tags', '--abbrev=0']);
|
||||
} catch (err) {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
export async function getShortCommit(): Promise<string> {
|
||||
|
||||
Reference in New Issue
Block a user