mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 20:12:15 +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 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');
|
||||
|
||||
Reference in New Issue
Block a user