add: hugoVersion latest

This commit is contained in:
peaceiris 2019-09-16 00:22:08 +09:00
parent 03bccf68b8
commit c2a052ead3

View file

@ -1,6 +1,7 @@
const core = require('@actions/core'); const core = require('@actions/core');
const wait = require('./wait'); // const wait = require('./wait');
let hugoVersion = '';
// most @actions toolkit packages have async methods // most @actions toolkit packages have async methods
async function run() { async function run() {
@ -14,7 +15,10 @@ async function run() {
// core.setOutput('time', new Date().toTimeString()); // 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); console.log('Hugo version:', hugoVersion);
const extended = core.getInput('extended'); const extended = core.getInput('extended');