RMI-PACTA / r2dii.usethis

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

New gh-actions workflow to check file encodigs Closes #36 #38

Closed maurolepore closed 3 years ago

maurolepore commented 3 years ago

Closes #36 Closes #39

This PR makes r2dii.usethis the home of a workflow that before was in the organization wide repo .github. There its behaviour was not the expected one (that it would automatically show up in all repos of 2DegreesInvesting) so I move it here so we can add it to any new repo with:

usethis::use_template(
  "check-file-encodings.yml", package = "r2dii.usethis"
)

Notice the extension is ".yaml" and not ".yml". I don't think it matters but ".yaml" is consistent with all templates I see at https://github.com/r-lib/actions/tree/master/examples.

cjyetman commented 3 years ago

Notice the extension is ".yaml" and not ".yml". I don't think it matters but ".yaml" is consistent with all templates I see at https://github.com/r-lib/actions/tree/master/examples.

I thought the same, but then I followed GitHub's instructions, which use .yml.... but I'm totally indifferent about it.

cjyetman commented 3 years ago

also this...

Screenshot 2021-06-30 at 08 44 15
maurolepore commented 3 years ago

Thanks @cjyetman I just pasted the version you shared here and renamed the file extension to .yml.

I'll merge after checks. Then we'll be able to use this workflow with:

    usethis::use_template("check-file-encodings.yml", package = "r2dii.usethis")