We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I wanted to use Yamale to validate all YAML files in my Github repository.
But Yamale also wants to validate my .github/workflows/CI.yml file.
.github/workflows/CI.yml
Can you introduce a command line option to disable recursive file searches so sub-folders are ignored?
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion, I'll think about how this can be done. In the meantime, you can do something like the following:
find *.yaml -exec yamale -s schema.yaml {} \;
Sorry, something went wrong.
Instead of \; at the end, it should be +, otherwise the exit code will be 0 (success) instead of 1.
\;
+
This is useful for calling it as part of build pipelines, as the pipeline will fail if any command returns non-0.
Additionally, the pattern in the find has to be more restrictive, otherwise you would validate the schema.yaml against itself.
find
No branches or pull requests
I wanted to use Yamale to validate all YAML files in my Github repository.
But Yamale also wants to validate my
.github/workflows/CI.yml
file.Can you introduce a command line option to disable recursive file searches so sub-folders are ignored?
The text was updated successfully, but these errors were encountered: