NLeSC / python-template

Netherlands eScience Center Python Template
https://research-software-directory.org/software/nlesc-python-template
Apache License 2.0
164 stars 74 forks source link

remove double CI build triggers #303

Closed egpbos closed 2 years ago

egpbos commented 2 years ago

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.