So at Mercury we ran into a significant UX issue with GitHub where if you use GitHub's support for concurrency groups, like this:
concurrency:
group: foo
… then your commit timeline is littered with a bunch of red ❌s from cancelled runs (since concurrency groups will cancel jobs to make sure that at most one job runs at a time). This can make it much harder to identify failed runs and there are at least two open issues related to this problem:
- GitHub Actions | Listing workflows cancelled by concurrency settings as failed could be misleading
- Cancel a workflow without considering it failed?
This is something that GitHub should fix on their own end, but in the interim we open sourced a GitHub action that works around this problem by clearing cancelled builds from the workflow's history. This leads to a much cleaner commit timeline where red ❌s are only relevant build failures.