Skip to content

Commit fda06fe

Browse files
authored
feat(json-schema-check): allow for several schema files per package (#263)
* feat(json-schema-check): Print filename Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com> * feat(json-schema-check): Allow for several schema files per package The goal is to allow one schema file per node in a package. And to allow several configuration files per schema. The schema files have to follow a NODE_NAME.schema.json naming convention and the configuration files have to follow a NODE_NAME*.param.yaml naming convention. Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com> --------- Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
1 parent 5f373bf commit fda06fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

json-schema-check/action.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ runs:
1111

1212
- name: Check configuration files
1313
run: |
14-
find -wholename '*/schema/*.schema.json' -execdir bash -c 'check-jsonschema --schemafile "$1" ../config/*.param.yaml' bash '{}' +
14+
find -wholename '*/schema/*.schema.json' -printf '%p: ' -execdir bash -c 'check-jsonschema --schemafile "$1" ../config/"${1:2:-12}"*.param.yaml' bash '{}' +
1515
shell: bash

0 commit comments

Comments
 (0)