Closed jeandet closed 8 months ago
@sapols GH basically reads all yaml files in .github/workflows, then the on keyword tells GH wen you want the following yaml file to be "triggered". I also thought about adding a project structure check, ensuring that all required fields are set and not unknown ones exists, I'll add this into another PR later.
Ah gotcha, so it's not the filename but that on
keyword. Makes sense, good to know.
And yeah that project structure check sounds like good low-hanging fruit. Thanks again for offering to do that.
If you're happy with this, I'll go ahead and merge this PR. Then you can open a new one whenever you get around to the project structure check. 👍
@sapols, yes, you can merge :).
I would like to propose the idea to check PRs with CI so we get a feedback quickly and this also ensures trivial mistakes won't be missed by humans. So far, only checks for yaml validity and correct usage of keywords in projects but I would be happy to add more and improve the script.
I've run the script locally and here is the output: