I have a Github Workflow that is triggered on a pull request like so:
But when I open a PR from my forked repository to the upstream repository, the Github Action is not being triggered on the upstream repository.
From what I’ve read in the documentation here, it seems like the Workflow should be triggered, but the only time that it is triggered is on the merging of the pull request into the upstream repository.
When you open a pull request from a forked repository, the pull request opens on the base repository by default. In this scenario, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository because the webhook configuration of the original base repository doesn't apply to forked repositories.
I’d like to confirm what the correct behaviour is here. I have Github Actions enabled on both my user account and the upstream repositories account.