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.
I am getting the same problem. Although, my action is triggerd in my forked repository insted of upstream. Both are private. I need to figure out how to trigger build on upstream, like what Travis does. It seems that it is working in public repos, but not in private.
I haven't tested it with public repos but I'm definitely experiencing that behaviour on private ones. It'd be good to get some clarification on what the actual behavior is.
Same problem, tested with multiple repositories private and public, the actions are never triggered when the PR is coming from a fork
Glad others are experiencing this. It'd be really good to get some clarification from Github.
No response yet. I double checked the ticket, turns out my email response was not recorded. So I have responded directly through the webform. I will report back here as soon as I hear back from Github support.