Skip to content

Commit

Permalink
Fix: Exclude false_positives.yaml from schema validation
Browse files Browse the repository at this point in the history
  • Loading branch information
tylfin committed Jul 19, 2023
1 parent 50350be commit 30d916d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/schema-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
- name: Validate YAML files
run: |
for file in $(find . -name "*.yaml"); do
npx js-yaml $file > temp.json
ajv validate -s schema.json --spec draft2020 -d temp.json -c ajv-formats -c ajv-keywords --strict=false
if [[ $file != *'false_positives.yaml' ]]; then
echo "validating $file"
npx js-yaml $file > temp.json
ajv validate -s schema.json --spec draft2020 -d temp.json -c ajv-formats -c ajv-keywords --strict=false
fi
done

0 comments on commit 30d916d

Please sign in to comment.