I'm creating a GitHub action, where I have two loops running in parallel, writing to the console.
Example:
async function loop(name) {
core.startGroup(name);
for (var i = 0; i < 10; i++) {
core.info(`[INFO] {${name}}: ${i} { type = log, task = ${name} }`);
await delay(1000); // delay = promise that wraps setTimeout
}
core.endGroup();
}
loop('a');
loop('b');
I expect each loop to write to its respective group
Instead, I see this in the job logs
Which isn't a surprise since loop('b') overrides the group opening.
Is there a way to write output to a specific group, even when running in parallel?

