-
Notifications
You must be signed in to change notification settings - Fork 6
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
GitHub Actions: Styler #248
Conversation
This reverts commit 32b4420.
It looks like this is not quite working as expected. For the pull request, it seems not be getting the branch info, so it is not pushing changes back to the branch. On checkout, we get:
Then on commit, we get the following:
|
I saw this, I'm trying to use the |
I was just going to point to that... seems to have worked! |
I think this is ready for review, but I don't know what the status of the docker-build stuff is, @jashapiro ? Do we still want the changes to docker-build.yml you had originally said and that we made here? |
You'll notice there's a lot of styled files here, they are mainly files that haven't been updated yet because the styler action runs on all Rmds. Or there we a couple stylings I introduced as a test (which turned out we didn't need tests because of the old files). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me! And it seems to do what we want, so let's add it in!
Purpose:
Closes #231
This PR adds a step to the GHA workflow that styles all the Rmd files upon a PR or merge with master.
It also includes a slight modification to
docker-build.yml
so that builds only happen when changes to the Dockerfile occur.styler.yml
defined GHAs pull the rocker/tidyverse image and runs it on there sincestyler
needsknitr
for styling Rmds and we also needgit
for the committing step. The commit that saysStyle Rmds
is where that occurred.It is likely that this
styler.yml
file will later be modified so it handles spell checking as well, but that will be in a future PR.