mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-24 20:12:15 +01:00
add: options hugo-version and extended
This commit is contained in:
10
index.js
10
index.js
@@ -4,7 +4,7 @@ const wait = require('./wait');
|
||||
|
||||
// most @actions toolkit packages have async methods
|
||||
async function run() {
|
||||
try {
|
||||
try {
|
||||
const ms = core.getInput('milliseconds');
|
||||
console.log(`Waiting ${ms} milliseconds ...`)
|
||||
|
||||
@@ -13,7 +13,13 @@ async function run() {
|
||||
core.debug((new Date()).toTimeString())
|
||||
|
||||
core.setOutput('time', new Date().toTimeString());
|
||||
}
|
||||
|
||||
const hugoVersion = core.getInput('hugo-version');
|
||||
console.log('Hugo version:', hugoVersion);
|
||||
|
||||
const extended = core.getInput('extended');
|
||||
console.log('Hugo extended:', extended);
|
||||
}
|
||||
catch (error) {
|
||||
core.setFailed(error.message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user