client_golang
client_golang copied to clipboard
[CI]: Add Concurrency Grouping to GitHub Workflows
What problem is this PR solving?
fixes https://github.com/prometheus/client_golang/issues/1437
Description of the changes
- Whenever we push commits to a PR, workflows are triggered for that commit. After that, if we push additional commits to this PR, workflows in Github Actions run on both commits.
- We need to cancel the previous run and run only on the most recent pushed commit. This would help save some GitHub Action Minutes (probably not a problem for this project but its always better to same some resources) and unexpected workflow failures on previous commits.
@ArthurSens Nice catch actually :) If two PRs would be merged in a timeframe when their workflow runs are concurrent, then yes, previous PR's commit push workflow trigger would be cancelled.
I need to close this PR then, since we aren't using merge queues to handle that case