diff --git a/get-latest-version.js b/get-latest-version.js index 46d60ff..4670f6a 100644 --- a/get-latest-version.js +++ b/get-latest-version.js @@ -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}`); } }; }); diff --git a/index.js b/index.js index e52182b..e401b58 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ async function run() { core.debug(`Hugo extended: ${extended}`); let extendedStr = ""; - if (extended) { + if (extended === "true") { extendedStr = "extended_"; }