Fix preview github action runner
Preview githhub action needs permission to deploy
The docs say:
grant actions permission to read and write to the repository…
See #76 for more information
@aterrel, I have been looking at this issue. As per your action, you are using a GITHUB_TOKEN. Maybe check permissions to GITHUB_TOKEN for deployment, they might be revoked. It can be checked through:
More information for above can be found here: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions
I have made the PR with the following content, just added permission in the Github Actions
More information for above can be found here: https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file
Per our call, @AR21SM this is the issue that you can add the various ways of solving this issue.
- https://github.com/rossjrw/pr-preview-action
- Netlify - https://github.com/spyder-ide/spyder-docs/pull/369#:~:text=netlify/spyder%2Ddocs%2Dpreview/deploy%2Dpreview%20%E2%80%94%20Deploy%20Preview%20ready!
- Circle CI - https://github.com/numpy/numpy/pull/29220#:~:text=ci/circleci%3A%20build%20%E2%80%94%20Your%20tests%20passed%20on%20CircleCI!
@AR21SM this seems to be failing still. It seems the permissions are correct in the settings but the error in PRs says there is a permissions issue. Any ideas?
Example of a working PR.
Next steps:
- [ ] Open a open source account and see about getting more previews. see https://github.com/numfocus/DISCOVER-Cookbook/pull/349#issue-3195978420
Is, this issue is currently opened or closed? I want to contribute on this issue.