mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 10:47:28 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user