Only run push CI on pushes to main - #9946
Closed
akx wants to merge 1 commit into
Closed
Conversation
Workflows were triggered for every branch, including those pushed into forks (such as the tons of temporary branches on my fork), meaning each fork of Pillow with Actions enabled was running a whole lot of stuff for no great reason, burning resources for everyone. This restricts the push trigger to `main` only. If you want to run CI on your own fork, you can open a pull request or use the workflow_dispatch trigger.
Contributor
Author
Member
|
I want to run CI on my fork when I push feature branches, so I can ensure things pass before opening a PR. I don't want the added friction of opening a PR or repeatedly clicking buttons in the UI. |
Member
|
I agree with hugovk's comment |
Contributor
Author
|
Okay. I'll just note this is pretty wasteful, since every push, even temporary, runs every workflow. Eg. CPython also gates like this. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Workflows were triggered for every branch, including those pushed into forks (such as the tons of temporary branches on my fork), meaning each fork of Pillow with Actions enabled was running a whole lot of stuff for each push for no great reason, burning resources for everyone.
This restricts the push trigger to
mainonly. If you want to run CI on your own fork, you can open a pull request or use the workflow_dispatch trigger.This fell out of #9945 since my fork's PR for it looked like
and
😭 😄