Update GrantBirki/json-yaml-validate action to v2.6.2 #166
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
--- | |
name: Validate yaml files | |
on: | |
- push | |
- pull_request | |
permissions: | |
contents: read | |
pull-requests: write # enable write permissions for pull request comments | |
jobs: | |
validate-yaml: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: get go-yq | |
run: | | |
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O yq | |
chmod +x yq | |
- name: extract front matter | |
run: | | |
find ./_projects -name "*.md" -exec bash -c "./yq --front-matter=extract {} > {}.yaml " \; | |
- name: json-yaml-validate | |
id: json-yaml-validate | |
uses: GrantBirki/json-yaml-validate@v2.6.2 | |
with: | |
comment: true | |
use_gitignore: false | |
json_schema: ./validation/schema.json | |
json_exclude_regex: "" | |
exclude_file: ./validation/exclude | |
base_dir: "./_projects" | |
yaml_as_json: true |