From 722aeff14935490984e5b48acdf6813622644d68 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 05:42:48 +0900 Subject: [PATCH] enhance --- get-latest-version.js | 2 ++ index.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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_"; }