From 88accf1aa556ad5de9af494a1409c418d4824a46 Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 00:26:11 +0900 Subject: [PATCH] add: extended false --- index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8aeccd7..f72f712 100644 --- a/index.js +++ b/index.js @@ -2,6 +2,7 @@ const core = require('@actions/core'); // const wait = require('./wait'); let hugoVersion = ''; +let extended = ''; // most @actions toolkit packages have async methods async function run() { @@ -21,7 +22,10 @@ async function run() { } console.log('Hugo version:', hugoVersion); - const extended = core.getInput('extended'); + extended = core.getInput('extended'); + if (!extended) { + extended = false; + } console.log('Hugo extended:', extended); } catch (error) {