npm run tsc
This commit is contained in:
parent
5d1c5572d1
commit
92afc32e34
1 changed files with 2 additions and 1 deletions
|
|
@ -32,10 +32,10 @@ function run() {
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const hugoVersion = core.getInput('hugo-version');
|
const hugoVersion = core.getInput('hugo-version');
|
||||||
console.log(`Hugo version: ${hugoVersion}`);
|
|
||||||
if (hugoVersion === '' || hugoVersion === 'latest') {
|
if (hugoVersion === '' || hugoVersion === 'latest') {
|
||||||
get_latest_version_1.default().then(function (latestVersion) {
|
get_latest_version_1.default().then(function (latestVersion) {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
|
console.log(`Hugo version: ${latestVersion} (${hugoVersion})`);
|
||||||
yield installer_1.default(latestVersion);
|
yield installer_1.default(latestVersion);
|
||||||
yield dump();
|
yield dump();
|
||||||
});
|
});
|
||||||
|
|
@ -44,6 +44,7 @@ function run() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
console.log(`Hugo version: ${hugoVersion}`);
|
||||||
yield installer_1.default(hugoVersion);
|
yield installer_1.default(hugoVersion);
|
||||||
yield dump();
|
yield dump();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue