-
Notifications
You must be signed in to change notification settings - Fork 50
Dev doc preview should only be run on maintainer PRs #692
Comments
I believe this has been addressed with #750 |
Unfortunately this is still an issue 😞 See #767 |
Is it because we're checking that the event is a pull_request? Isn't that check redundant to the configuration of the workflow itself? Based on the advice given the GitHub support forums it seems like just checking that the repository name is |
Maybe we can do something like this that we did in the frontend? |
I wonder why the recommended approach doesn't work though? |
@sarayourfriend from my understanding, the support forum question was to prevent GitHub Actions defined in the upstream from running on a fork. But when a PR from the fork is made to the upstream repo, the PRs are running in the upstream context so the condition evaluates to |
I see! Thanks for explaining. It's strange that the way to do this is so obtuse 🤔 |
Description
We ran into an issue in #690 wherein the docs preview failed to run because the PR was opened from a fork. The easiest way to address this is to prevent the docs preview action from running on forks.
Additional context
Resolution
The text was updated successfully, but these errors were encountered: