Closed machow closed 2 years ago
Note that this was solved in an even better way in https://github.com/rstudio/pins/blob/main/.github/workflows/rstudio-connect.yaml#L12!
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork == false
Currently, our CI github triggers github actions on all pushes and pull_request events. The haunting issue with this is that it runs PRs made from branches on this repo twice (Note that for PRs opened from forks it will run once).
Changing to only run pull requests, and pushes to main works well, if you open draft PRs for all branches you want to test. However, sometimes I want to run github actions while testing things out (not necessarily worth opening a draft PR).
A compromise might be:
classic approach
customization
dev-*
branches