gha: Enhance workflows (#102)
* gha: Add Pull Request to stale target * gha: Add ncc check step (Close #98 ) * src: Rename showVersion() * test: Add not to be cases * Remove old comment * gha: Add update major tag workflow (Close #97 )
This commit is contained in:
parent
bc6f48c683
commit
739a95f1e7
8 changed files with 40 additions and 18 deletions
|
|
@ -1907,7 +1907,7 @@ const get_latest_version_1 = __importDefault(__webpack_require__(307));
|
|||
const installer_1 = __importDefault(__webpack_require__(923));
|
||||
function run() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const dump = () => __awaiter(this, void 0, void 0, function* () {
|
||||
const showVersion = () => __awaiter(this, void 0, void 0, function* () {
|
||||
yield exec.exec('hugo version');
|
||||
});
|
||||
try {
|
||||
|
|
@ -1917,7 +1917,7 @@ function run() {
|
|||
return __awaiter(this, void 0, void 0, function* () {
|
||||
console.log(`Hugo version: ${latestVersion} (${hugoVersion})`);
|
||||
yield installer_1.default(latestVersion);
|
||||
yield dump();
|
||||
yield showVersion();
|
||||
});
|
||||
}, function (error) {
|
||||
core.setFailed(error);
|
||||
|
|
@ -1926,7 +1926,7 @@ function run() {
|
|||
else {
|
||||
console.log(`Hugo version: ${hugoVersion}`);
|
||||
yield installer_1.default(hugoVersion);
|
||||
yield dump();
|
||||
yield showVersion();
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue