Initial commit

This commit is contained in:
xrkffgg
2021-03-10 13:38:05 +08:00
commit d4ec9b4ffc
11 changed files with 729 additions and 0 deletions

20
src/main.js Normal file
View File

@@ -0,0 +1,20 @@
const core = require('@actions/core');
async function run() {
try {
const ms = core.getInput('milliseconds');
core.debug(`Waiting ${ms} milliseconds ...`); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true
core.debug(new Date().toTimeString());
await new Promise(resolve => {
setTimeout(() => resolve('done!'), 10);
});
core.debug(new Date().toTimeString());
core.setOutput('time', new Date().toTimeString());
} catch (error) {
core.setFailed(error.message);
}
}
run();