starting...

This commit is contained in:
Bryan MacFarlane
2019-09-11 01:44:28 -04:00
parent 331b42dfcc
commit 198d21cc29
7 changed files with 4936 additions and 0 deletions

20
index.js Normal file
View File

@@ -0,0 +1,20 @@
const core = require('@actions/core');
const wait = require('./wait');
async function run() {
try {
const ms = core.getInput('milliseconds');
console.log(`Waiting ${ms} milliseconds ...`)
core.debug((new Date()).toTimeString())
wait(parseInt(ms));
core.debug((new Date()).toTimeString())
core.setOutput('time', new Date().toTimeString());
}
catch (error) {
core.setFailed(error.message);
}
}
run()