RMI-PACTA / r2dii.usethis

Automate Package And Project Setup
https://2degreesinvesting.github.io/r2dii.usethis
Other
1 stars 2 forks source link

Update workflow #44

Closed maurolepore closed 2 years ago

maurolepore commented 2 years ago

This PR updates the workflow to check file encodings, assuming the latest and greatest is the one following this commit by @MirijaHa -- which I hear used feedback from @cjyetman.

https://github.com/2DegreesInvesting/r2dii.stress.test.data/commit/83b279e8f0f73e7e737733835eeb428221c3194e

You may use this workflow with:

usethis::use_template(
  "pr-check-file-encodings.yml", 
  save_as = ".github/workflows/pr-check-file-encodings.yml",
  package = "r2dii.usethis"
)

This seems long. Do we need a wrapper? Say, r2dii.usethis::use_github_action_check_encoding()?

cjyetman commented 2 years ago

FYI.... I believe this is where I try to always keep the most up-to-date version of this GH Action. I believe there is some way to maintain organization level GH Actions, which would probably be more ideal for 2dii, but I have not looked into that much.