Thanks for creating nice reusable workflows! I am using the workflows::use_r_cmd_check() to create call-r-cmd-check.yml for r4MAS, but the created workflow file is invalid according to the GitHub Actions summary.
Potential cause of error: workflows::use_r_cmd_check() creates a workflow using the template of call-r-cmd-check.yml from inst/templates. The yaml file needs extra spaces before "uses" in the last line.
Thanks @Bai-Li-NOAA ! I think I copied and pasted the workflow from somewhere else and the spacing must have gotten messed up during that. Thanks so much for pointing out this issue! It should now be fixed
Thanks for creating nice reusable workflows! I am using the
workflows::use_r_cmd_check()
to create call-r-cmd-check.yml for r4MAS, but the created workflow file is invalid according to the GitHub Actions summary.Potential cause of error:
workflows::use_r_cmd_check()
creates a workflow using the template of call-r-cmd-check.yml from inst/templates. The yaml file needs extra spaces before "uses" in the last line.Potential solutions: 1) Add extra spaces before "uses" in line 12 in inst/templates/call-r-cmd-check.yml; or 2) update the url link in the R script to https://raw.githubusercontent.com/nmfs-stock-synthesis/workflows/main/.github/workflows/call-r-cmd-check.yml
The reusable workflow works after I added the extra spaces to the call-r-cmd-check.yml manually. Let me know if there are other solutions. Thanks!