With on: [push, pull_request], GitHub Actions will trigger CI jobs twice (when you are branching in the repo itself): once for pushing to the PR branch and once for the PR itself. This is wasteful of resources and also makes the overview unnecessarily cluttered. This PR triggers only on direct pushes to main and on PRs to main. This means that it won't trigger anymore on pushes to other branches, but this can easily be "reactivated" by creating a (draft) PR from your other branch.
With
on: [push, pull_request]
, GitHub Actions will trigger CI jobs twice (when you are branching in the repo itself): once for pushing to the PR branch and once for the PR itself. This is wasteful of resources and also makes the overview unnecessarily cluttered. This PR triggers only on direct pushes to main and on PRs to main. This means that it won't trigger anymore on pushes to other branches, but this can easily be "reactivated" by creating a (draft) PR from your other branch.