-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Use GitHub Actions concurrency control #2179
base: master
Are you sure you want to change the base?
Conversation
Interesting, thank you. Just one question. What does this line do? I can't understand just by reading GH doc.
|
Sure, it's not the... clearest mud ever. Basically, you need to in some way specify what other workflow runs should get cancelled. This is intended to create a group for each PR, for each branch, and then a unique "group" for each commit to the default branch so on The never-cancel- I could write more if it isn't clear quite yet, let me know. Side note, I personally also set the triggers under |
OK, this is clear, thanks for the detailed explanation. Could you just add a comment on top? Something like:
...?
Clear. I think I don't want this though. I often want to trigger a build while I'm working in a branch (which is not yet a PR) because I want to see how tests run on all platforms. |
Yeah, I like to have a PR for everything more or less. I just use the GitHub 'draft PR' feature until it is ready (or if it never will be, such as for throw away explorations). Anyways... Adding the comment now. I'll use a few more words, but not too many. |
https://github.com/giampaolo/psutil/actions/runs/3874621010
|
@altendky are you still interested in proceeding with this and update the PR? I'd like to get rid of the |
Yep, sure thing. |
Summary
Description
https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
GitHub Actions offers their own built in concurrency control.
This is just an offer in case you are interested in switching over.
It includes the commit hash in the 'concurrency group' if the run is for the default branch so that the default branch builds do not get cancelled.