add: options hugo-version and extended
This commit is contained in:
parent
42a06b08e9
commit
843ac84fed
4 changed files with 36 additions and 8 deletions
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue