Skip to content

Commit 2b0b7ca

Browse files
authored
Update index.js
1 parent bd0040e commit 2b0b7ca

File tree

1 file changed

+1
-21
lines changed

1 file changed

+1
-21
lines changed

index.js

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
const core = require('@actions/core');
2-
const wait = require('./wait');
3-
4-
5-
// most @actions toolkit packages have async methods
6-
async function run() {
7-
try {
8-
const ms = core.getInput('milliseconds');
9-
core.info(`Waiting ${ms} milliseconds ...`);
10-
11-
core.debug((new Date()).toTimeString()); // debug is only output if you set the secret `ACTIONS_RUNNER_DEBUG` to true
12-
await wait(parseInt(ms));
13-
core.info((new Date()).toTimeString());
14-
15-
core.setOutput('time', new Date().toTimeString());
16-
} catch (error) {
17-
core.setFailed(error.message);
18-
}
19-
}
20-
21-
run();
1+
console.log(process.cwd());

0 commit comments

Comments
 (0)