-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix previews workflow #22
Conversation
Oh It didn't work. I know why now. It "worked" before for @tmadlener because it was a PR inside the same dmX repo (the gh preview worked). However, when PR's are opened from a fork, then It fails, because it doesn't have enough permissions to push the preview code from the fork to the upstream. The author of pr-preview-action suggest to change the type of event, from |
The new workflow is not triggering but should in theory. I've replicated the same situation using a repo from an organization and a fork. So in PR #7, it couldn't deploy to gh pages because of this error. In dmX happens the same error here But after changing the trigger to However, there is a drawback. This can raise a security concern because anyone when opening a PR, would push to dmX in the |
Thanks for investigating this and writing everything up so that we have a comprehensive list of things to check when we run into this the next time ;) Did I understand correctly, that we need to merge this first to see if it actually fixes things?
We do that in any case for all our repositories. |
I guess... I mean, in my example it worked. But maybe some other thing could cause an error. So I would like to give it a try, and if doesn't work, then I will see what happens and try to fix it, again 😅.
Ohh, then it's fine. |
Then let's merge and see what happens ;) |
BEGINRELEASENOTES
preview.yml
file.ENDRELEASENOTES
After taking a closer look, pr-preview-action uses another github action called sticky-pull-request-comment. So I came across issue #930 where happened the same error. So the solution is proposed by the author like this.