enhance
This commit is contained in:
parent
f43706a360
commit
722aeff149
2 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@ function getLatestVersion() {
|
|||
const latestVersion = latestURL.match(/(\d+).(\d+).(\d+)/g)[0];
|
||||
|
||||
resolve(latestVersion);
|
||||
} else if (xhr.status !== 200) {
|
||||
reject(`ERROR: got status ${xhr.status}`);
|
||||
}
|
||||
};
|
||||
});
|
||||
|
|
2
index.js
2
index.js
|
@ -17,7 +17,7 @@ async function run() {
|
|||
core.debug(`Hugo extended: ${extended}`);
|
||||
|
||||
let extendedStr = "";
|
||||
if (extended) {
|
||||
if (extended === "true") {
|
||||
extendedStr = "extended_";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue