-
Notifications
You must be signed in to change notification settings - Fork 0
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
Branch protection rules interfere with GitHub Actions #27
Comments
Thanks for diving into this @pitkant ! @ouzor will decide and I am rather indifferent about the solution in this case but I also feel that README.md could be built locally, it is easy to automate anyways. In general I think that master/main protection would be a good idea to implement also more widely for mature packages. |
Thanks @pitkant for bringing this up! |
There's some history in trying to implement a common set of GitHub Actions in the most used / active repos. Examples of now outdated render-readme workflows with additional repository-dispatch triggers that utilise organisation level PATs to first render README and then deploy a new website:
Example of a simpler and somewhat updated workflow that fails with a cryptic error message "Process completed with exit code 1": Example of a modern render-rmarkdown workflow that is enhanced with some additional Ubuntu system dependencies as suggested in r-lib/actions#502 and r-lib/actions#603 (it still fails with the same "Process completed with exit code 1" error message though): I think currently the easiest workable solution, as demonstrated in this repository, would be to use @dieghernan's workflow utilising his pkgdev package (that can do other things as well than just rebuild the readme file).
I agree that building the README files locally would probably be for the best: there's anyway some housekeeping tasks that are done locally before pushing new / updated code to GitHub and rendering README is not even the most taxing one. It would also seem that tidyverse and rOpenSci packages do not have render-rmarkdown workflows so that's another argument for ditching at least the bothersome workflows. |
I support the suggestion from @pitkant on pkgdev package; and I also think that repeatedly fixing GHA workflows is causing more burden than rendering some of those things locally (notably, the README; potentially even the package website) and simplifying the GHA workflow this way. It would be useful to converge to a recommended way of doing this within the rOpenGov collection. |
Regarding the question from @ouzor the rendering happens with just |
Then there is the easy-to-use |
(Peter Evans' answer on SO was something I tried to utilise when finding ways to fix this problem but apparently it was no panacea for this specific configuration of protected branch)
The text was updated successfully, but these errors were encountered: