Closed zmoon closed 2 years ago
Maybe the hook name should be validate-cff
instead
Found it doesn't currently work if multiple .cff
files, gonna try to fix that.
I couldn't get it to work with multiple .cff
files, because it passes all of them, and cffconvert -i
only supports passing one. So I changed it to only validate the CITATION.cff
file, which lines up with what the Action does by default I think.
I couldn't get it to work with multiple
.cff
files, because it passes all of them, andcffconvert -i
only supports passing one. So I changed it to only validate theCITATION.cff
file, which lines up with what the Action does by default I think.
Yep the Citation File Format specification requires the exact filename "CITATION.cff" anyway (see here), so I'm good with just running on that.
Thanks for making this PR
Closes #268
This seems to work fine. The issue is that if the validation doesn't pass, some errors cause the whole schema to be printed, which takes a lot of lines, so you have to scroll far up to find the actual helpful message.