mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 12:22:17 +01:00
add: hugoVersion latest
This commit is contained in:
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');
|
||||||
|
|||||||
Reference in New Issue
Block a user