sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Use GHA `concurrency` to lock a single run per license used

Open bruno-garcia opened this issue 4 years ago • 1 comments

https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency

Currently two pushes will trigger two concurrent builds where the second fails due to license issues

bruno-garcia avatar Sep 13 '21 22:09 bruno-garcia

I've had a look at this after the painful start of the week with a lot of license failures... Currently concurrency doesn't provide an option to limit to a specific number, it only enforces "one" for a given group name. I was also thinking of using a modulus operator to construct the group name based on a job run ID - not ideal but kinda what we need, but there's no % in expressions either, so it would need to be a manually composed disgustingly-long expression composed of ternary operations to emulate the "modulus 6" (the current number of available licences).

I've added a feature request to add a limit as a discussion here: https://github.community/t/concurrency-limit/245284

vaind avatar Apr 13 '22 07:04 vaind