nmfs-ost / ss3-workflows

This repo contains a collection of reusable workflows found helpful for the SS3 project
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

Error in yaml syntax (call-r-cmd-check.yml) on line 12 #14

Closed Bai-Li-NOAA closed 2 years ago

Bai-Li-NOAA commented 2 years ago

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!

k-doering-NOAA commented 2 years ago

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