chore(GHA): add a GHA to auto update R data#34
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
code review from copilot: There's a fundamental problem with the checkout logic. Both conditional checkout steps will never execute correctly: YAML
Impact: When commit-directly: true (normal case), github.head_ref will be empty/null on push events, causing checkout to fail YAML
R Recommendation: Use system2() instead for safer command execution: R R Fix: Add error checking: R Problem: The R environment setup steps (r-lib/actions) execute regardless of which checkout condition was met. While this works, they should ideally run after the appropriate checkout to avoid redundant dependency checks. Recommendation: Add conditional execution to R setup steps: YAML
YAML YAML YAML YAML Blockers: Critical checkout logic bug — The workflow won't function in the primary use case (direct commit mode) Fix the checkout condition logic |
86c5b17 to
b16a66a
Compare
Code Metrics Report
Reported by octocov |
|
Fixed the checkout logic bug and system() call. Left the rest as they are because R throws a hard error on installation failure and GHA naturally aborts sequential steps on failure. |
What is the feature?
How have you implemented the solution?
for updating data files in the package when
changes are made to the /data-raw
Does the PR impact any other area of the project, maybe another repo?