Add GitHub Actions pull request comments to workflow
This is a work-in-progress pull request to implement the GitHub Actions pull request comments with artifact links. See #322 for a discussion of the current roadblocks and https://github.com/agitter/my-manuscript/pull/14 for my trial and error testing of different actions.
TODO:
- [ ] Only run this step on pull requests
- [ ] Retrieve the artifact URL
- [ ] Investigate 403 forbidden error
Interesting. The "Comment on Pull Request" step failed with a 403 forbidden error in this pull request. The same workflow worked when I made a pull request into a repository I owned.
The GitHub developer guide refers to a personal access token for authentication: https://developer.github.com/v3/guides/working-with-comments/#pull-request-comments
If I'm reading the GITHUB_TOKEN permissions correctly, it shows forked repos only have read permission.