push only works for pushes to branches in the repository which means pull requests from forks won't trigger it.
This change limits the workflow running on push to the main branch, meaning everyone including maintainers with write access to this repository will now need to open a PR to have CI run but this is generally fine if you're already following a PR based flow (which most people do), and avoids running the workflow twice for PRs (once for the push trigger and then again for the pull_request trigger) which is a little nicer on 🌎
push
only works for pushes to branches in the repository which means pull requests from forks won't trigger it.This change limits the workflow running on push to the
main
branch, meaning everyone including maintainers with write access to this repository will now need to open a PR to have CI run but this is generally fine if you're already following a PR based flow (which most people do), and avoids running the workflow twice for PRs (once for thepush
trigger and then again for thepull_request
trigger) which is a little nicer on 🌎