Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 088dea2

Browse files
author
Iddo Gino
committed
add group
1 parent 092394d commit 088dea2

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

index.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,18 @@ console.log(`Executing In Location: ${LOCATION}`);
1717
const ENVIRONMENT = core.getInput('environment') || null;
1818
console.log(`Executing In Env: ${ENVIRONMENT}`);
1919

20-
core.setOutput("time", 123);
20+
21+
function sleep(time) {
22+
return new Promise((res, rej) => {
23+
setTimeout(() => {
24+
res();
25+
}, time);
26+
});
27+
}
28+
29+
const result = await core.group('Execute Test', async () => {
30+
await sleep(2000);
31+
console.log("AAAAA")
32+
core.setOutput("time", 123);
33+
return true
34+
});

0 commit comments

Comments
 (0)