mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-08-31 13:48:28 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09847f1406 | ||
|
|
bd6280fd12 |
Generated
+6
-1
@@ -37,7 +37,12 @@ function isTagDirty(currentTag) {
|
|||||||
exports.isTagDirty = isTagDirty;
|
exports.isTagDirty = isTagDirty;
|
||||||
function getTag() {
|
function getTag() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
return yield git(['describe', '--tags', '--abbrev=0']);
|
try {
|
||||||
|
return yield git(['describe', '--tags', '--abbrev=0']);
|
||||||
|
}
|
||||||
|
catch (err) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
exports.getTag = getTag;
|
exports.getTag = getTag;
|
||||||
|
|||||||
Generated
+3
-3
@@ -1303,9 +1303,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@types/node": {
|
"@types/node": {
|
||||||
"version": "13.7.0",
|
"version": "13.7.1",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.7.0.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-13.7.1.tgz",
|
||||||
"integrity": "sha512-GnZbirvmqZUzMgkFn70c74OQpTTUcCzlhQliTzYjQMqg+hVKcDnxdL19Ne3UdYzdMA/+W3eb646FWn/ZaT1NfQ==",
|
"integrity": "sha512-Zq8gcQGmn4txQEJeiXo/KiLpon8TzAl0kmKH4zdWctPj05nWwp1ClMdAVEloqrQKfaC48PNLdgN/aVaLqUrluA==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"@types/stack-utils": {
|
"@types/stack-utils": {
|
||||||
|
|||||||
+1
-1
@@ -33,7 +33,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/download": "^6.2.4",
|
"@types/download": "^6.2.4",
|
||||||
"@types/jest": "^25.1.2",
|
"@types/jest": "^25.1.2",
|
||||||
"@types/node": "^13.7.0",
|
"@types/node": "^13.7.1",
|
||||||
"jest": "^25.1.0",
|
"jest": "^25.1.0",
|
||||||
"jest-circus": "^25.1.0",
|
"jest-circus": "^25.1.0",
|
||||||
"jest-runtime": "^25.1.0",
|
"jest-runtime": "^25.1.0",
|
||||||
|
|||||||
+5
-1
@@ -17,7 +17,11 @@ export async function isTagDirty(currentTag: string): Promise<boolean> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export async function getTag(): Promise<string> {
|
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> {
|
export async function getShortCommit(): Promise<string> {
|
||||||
|
|||||||
Reference in New Issue
Block a user