This commit is contained in:
peaceiris 2019-09-16 05:42:48 +09:00
parent f43706a360
commit 722aeff149
2 changed files with 3 additions and 1 deletions

View file

@ -18,6 +18,8 @@ function getLatestVersion() {
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0]; const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
resolve(latestVersion); resolve(latestVersion);
} else if (xhr.status !== 200) {
reject(`ERROR: got status ${xhr.status}`);
} }
}; };
}); });

View file

@ -17,7 +17,7 @@ async function run() {
core.debug(`Hugo extended: ${extended}`); core.debug(`Hugo extended: ${extended}`);
let extendedStr = ""; let extendedStr = "";
if (extended) { if (extended === "true") {
extendedStr = "extended_"; extendedStr = "extended_";
} }