From 053422e2e166fa9fcc81e30ab94e61568d3e67b8 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 04:39:56 +0900 Subject: [PATCH] fix: core.debug --- index.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index 6950501..eacc4b5 100644 --- a/index.js +++ b/index.js @@ -9,15 +9,18 @@ async function run() { try { let hugoVersion = core.getInput("hugo-version"); if (!hugoVersion || hugoVersion === "latest") { - hugoVersion = getLatestVersion(); + hugoVersion = "0.58.2"; + getLatestVersion().then(function(version) { + console.log(version); + }); } - core.debug("Hugo version:", hugoVersion); + core.debug(`Hugo version: ${hugoVersion}`); let extended = core.getInput("extended"); if (!extended) { extended = false; } - core.debug("Hugo extended:", extended); + core.debug(`Hugo extended: ${extended}`); let extendedStr = ""; if (extended) { @@ -25,10 +28,10 @@ async function run() { } const hugoName = `hugo_${extendedStr}${hugoVersion}_Linux-64bit`; - core.debug("hugoName:", hugoName); + core.debug(`hugoName: ${hugoName}`); const hugoURL = `https://github.com/gohugoio/hugo/releases/download/v${hugoVersion}/${hugoName}.tar.gz`; - core.debug("hugoURL:", hugoURL); + core.debug(`hugoURL: ${hugoURL}`); const hugoPath = "/usr/local/bin"; await io.mkdirP(hugoPath);