I want to setup a workflow that only runs on PR’s (so that my PR’s are triggered and also PR’s from people who forked my repository).
The workflow does:
- Build docker image
- Test docker image
- Pushes docker image to dockerhub
I want to make sure, that step **3.** only happens on the PR’s I create myself, but never on PR’s that come from forks.
Is there a way to figure out (e.g.: via
env or similar) if the current job runs on a PR that was initially forked or from my own repository?