Merge pull request #21 from yeti0904/master #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Validates all the YAML files against the JSON schema | |
name: Validate YAMLs against JSON Schema | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: write # enable write permissions for pull request comments | |
jobs: | |
verify-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Validate JSON | |
uses: GrantBirki/[email protected] | |
with: | |
base_dir: resources | |
json_schema: "resource.schema.json" | |
yaml_as_json: "true" # enable YAML to JSON conversion | |
comment: "true" # enable comment mode |