mirror of
https://gitea.com/Lydanne/pr-extract-issues.git
synced 2025-10-14 15:54:06 +08:00
Initial commit
This commit is contained in:
20
src/main.js
Normal file
20
src/main.js
Normal 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();
|
Reference in New Issue
Block a user