From 6a5ce71d29785a3053d9428c3a377026dff764ea Mon Sep 17 00:00:00 2001 From: amadeuszsz Date: Tue, 21 May 2024 18:24:43 +0900 Subject: [PATCH] ci(json-schema-check): allow nested config paths Signed-off-by: amadeuszsz --- json-schema-check/validate_json_schemas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json-schema-check/validate_json_schemas.py b/json-schema-check/validate_json_schemas.py index 1ee35d9e..80e7954f 100644 --- a/json-schema-check/validate_json_schemas.py +++ b/json-schema-check/validate_json_schemas.py @@ -14,7 +14,7 @@ def main(): config_dir = os.path.dirname(schema_file).replace('schema', 'config') str_indentation = ' ' * 4 - config_files = glob.glob(f'{config_dir}/{base_name}*.param.yaml') + config_files = glob.glob(f'{config_dir}/**/{base_name}*.param.yaml', recursive=True) if not config_files: print(colorama.Fore.YELLOW + f'{str_indentation}No configuration files found for schema {schema_file}.') continue