Skip to content

Commit

Permalink
workflows/check-json - fix return code
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoCampinoti94 committed Jun 20, 2024
1 parent 0d0dde8 commit ef03cdd
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/check-json.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,12 @@ jobs:
run: check-jsonschema --verbose --check-metaschema *.schema.json
- name: Check Files
run: |
status=0;
for schema in *.schema.json; do
for ext in "yaml" "yml" "json"; do
[[ -f "${schema%.schema.json}.$ext" ]] && check-jsonschema --verbose --schemafile "$schema" "${schema%.schema.json}.$ext"
done
done
if [[ -f "${schema%.schema.json}.$ext" ]]; then
check-jsonschema --verbose --schemafile "$schema" "${schema%.schema.json}.$ext" || status=$?;
fi;
done;
done;
exit $status

0 comments on commit ef03cdd

Please sign in to comment.