This commit is contained in:
peaceiris 2019-12-08 15:38:59 +09:00
parent a5d2cec8b8
commit c8c7069f37

View file

@ -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) {