-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: Limit concurrent workflow jobs to one per workflow per branch #1632
Conversation
acd32f3
to
3e1bcaa
Compare
I rebased off of |
Codecov Report
@@ Coverage Diff @@
## master #1632 +/- ##
=======================================
Coverage 98.12% 98.12%
=======================================
Files 64 64
Lines 4270 4270
Branches 683 683
=======================================
Hits 4190 4190
Misses 46 46
Partials 34 34
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Oh. I just realized this might be problematic for our release workflow as the Example:
for As
does that mean that on concurrency:
group: ci-${{ github.head_ref }}
cancel-in-progress: true will evaluate the |
isn't the head_ref for a tag the tag name, rather than the branch? |
Apparently not, as the
|
2045d29
to
ee74132
Compare
Description
Resolves #1631
Use GitHub Actions
concurrency
key withcancel-in-progress
option to limit the number of concurrent workflow jobs to one per workflow pergithub.head_ref
github.ref
(so per branch which results in per PR). This should speed up CI by keeping the queue clear by canceling CI jobs when another commit has been pushed that would kick off the same workflow.Example:
pre-commit
checks.pre-commit.ci
pushes back the changes that allows forpre-commit
to pass.the offending first workflow job is canceled and the second workflow job from
pre-commit.ci
's push can start.Checklist Before Requesting Reviewer
Before Merging
For the PR Assignees: