Ensure tag check errors don't output
All checks were successful
Build and test project / build-and-test (push) Successful in 1m28s
All checks were successful
Build and test project / build-and-test (push) Successful in 1m28s
This commit is contained in:
@@ -83,7 +83,7 @@ try {
|
|||||||
|
|
||||||
let tag = '';
|
let tag = '';
|
||||||
try {
|
try {
|
||||||
tag = String(execSync('git describe --tags --exact-match', { cwd: repoDir })).trim();
|
tag = String(execSync('git describe --tags --exact-match 2>/dev/null', { cwd: repoDir })).trim();
|
||||||
} catch {}
|
} catch {}
|
||||||
if (tag) {
|
if (tag) {
|
||||||
versionStr = tag;
|
versionStr = tag;
|
||||||
|
|||||||
Reference in New Issue
Block a user