Skip to content

Commit ad0803f

Browse files
committed
try more lax check
1 parent 5fcbfe5 commit ad0803f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/validate_schemas.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
run: |
2020
echo "Finding YAML and JSON files with a \$schema property…"
2121
files=$(grep -rl "\$schema:" . --include="*.yaml" --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -)
22-
json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | grep -v "context7.json" | paste -sd '|' -)
22+
json_files=$(grep -rl "\"\$schema\":" . --include="*.json" --exclude-dir="node_modules" | paste -sd '|' -)
2323
all_files=$(echo -e "$files\n$json_files" | paste -sd '|' -)
2424
if [ -z "$all_files" ]; then
2525
echo "No YAML or JSON files with \$schema were found."
@@ -35,3 +35,4 @@ jobs:
3535
uses: cardinalby/schema-validator-action@v3
3636
with:
3737
file: ${{ steps.collect.outputs.files }}
38+
mode: spec

0 commit comments

Comments
 (0)