2019-09-15 09:52:29 +02:00
|
|
|
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 09:52:29 +02:00
|
|
|
|
2019-09-15 17:04:26 +02:00
|
|
|
// core.debug((new Date()).toTimeString())
|
|
|
|
// wait(parseInt(ms));
|
|
|
|
// core.debug((new Date()).toTimeString())
|
2019-09-15 09:52:29 +02:00
|
|
|
|
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);
|
|
|
|
}
|
2019-09-15 09:52:29 +02:00
|
|
|
catch (error) {
|
|
|
|
core.setFailed(error.message);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
run()
|