add: hugoVersion latest
This commit is contained in:
parent
03bccf68b8
commit
c2a052ead3
1 changed files with 6 additions and 2 deletions
8
index.js
8
index.js
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue