mirror of
https://github.com/actions/javascript-action.git
synced 2025-12-13 19:03:41 +00:00
Merge pull request #15 from fregante/patch-1
Actually await the promise returned by wait.js
This commit is contained in:
2
index.js
2
index.js
@@ -9,7 +9,7 @@ async function run() {
|
|||||||
console.log(`Waiting ${ms} milliseconds ...`)
|
console.log(`Waiting ${ms} milliseconds ...`)
|
||||||
|
|
||||||
core.debug((new Date()).toTimeString())
|
core.debug((new Date()).toTimeString())
|
||||||
wait(parseInt(ms));
|
await wait(parseInt(ms));
|
||||||
core.debug((new Date()).toTimeString())
|
core.debug((new Date()).toTimeString())
|
||||||
|
|
||||||
core.setOutput('time', new Date().toTimeString());
|
core.setOutput('time', new Date().toTimeString());
|
||||||
|
|||||||
Reference in New Issue
Block a user