Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 672 Bytes

yaml_as_json.md

File metadata and controls

13 lines (10 loc) · 672 Bytes

YAML as JSON

By setting the the yaml_as_json input option to "true", you can treat YAML files as JSON so that they can be validated with the same schema as JSON files. This is useful as the yaml validator is rather limited in its capabilities. This means any matching YAML files will be validated with the configured json_schema rather than the yaml_schema.

Here is an example of how to use this feature:

- name: json-yaml-validate
  id: json-yaml-validate
  uses: GrantBirki/[email protected] # replace with the latest version
  with:
    yaml_as_json: "true" # enable yaml as json mode