actions-hugo/index.js

29 lines
707 B
JavaScript
Raw Normal View History

const core = require('@actions/core');
const wait = require('./wait');
// most @actions toolkit packages have async methods
async function run() {
2019-09-15 13:24:31 +02:00
try {
2019-09-15 17:04:26 +02:00
// const ms = core.getInput('milliseconds');
// console.log(`Waiting ${ms} milliseconds ...`)
2019-09-15 17:04:26 +02:00
// core.debug((new Date()).toTimeString())
// wait(parseInt(ms));
// core.debug((new Date()).toTimeString())
2019-09-15 17:04:26 +02:00
// core.setOutput('time', new Date().toTimeString());
2019-09-15 13:24:31 +02:00
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);
}
}
run()