Skip to content

Only run push CI on pushes to main - #9946

Closed
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:no-ci-star
Closed

Only run push CI on pushes to main#9946
akx wants to merge 1 commit into
python-pillow:mainfrom
akx:no-ci-star

Conversation

@akx

@akx akx commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

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 main only. 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
Screenshot 2026-09-02 at 21 41 39 and
Screenshot 2026-09-02 at 21 42 03 😭 😄

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.
@akx

akx commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

cc @hugovk -- Your 95b0c0b and fd37d86 added these double-asterisks originally, any recollection why? In practically all of the other projects I've seen, push is gated to tags/main?

@hugovk

hugovk commented Sep 2, 2026

Copy link
Copy Markdown
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.

@radarhere

Copy link
Copy Markdown
Member

I agree with hugovk's comment

@radarhere radarhere closed this Sep 3, 2026
@akx

akx commented Sep 3, 2026

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants