From c2a052ead3631dcb26137f3c358a80dd9e7aa751 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 00:22:08 +0900 Subject: [PATCH] add: hugoVersion latest --- index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5bd874c..8aeccd7 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,7 @@ const core = require('@actions/core'); -const wait = require('./wait'); +// const wait = require('./wait'); +let hugoVersion = ''; // most @actions toolkit packages have async methods async function run() { @@ -14,7 +15,10 @@ async function run() { // core.setOutput('time', new Date().toTimeString()); - const hugoVersion = core.getInput('hugo-version'); + hugoVersion = core.getInput('hugo-version'); + if (!hugoVersion) { + hugoVersion = 'latest'; + } console.log('Hugo version:', hugoVersion); const extended = core.getInput('extended');