[action] Recursive folder lookup attachconfig.yml
This commit is contained in:
parent
bdf5a1fb09
commit
fc765e2f32
|
@ -162,9 +162,10 @@ if __name__ == "__main__":
|
|||
yml_files_content = []
|
||||
directory = os.path.join(rtt_root, 'bsp', bsp, '.ci/attachconfig')
|
||||
if os.path.exists(directory):
|
||||
for filename in os.listdir(directory):
|
||||
for root, dirs, files in os.walk(directory):
|
||||
for filename in files:
|
||||
if filename.endswith('attachconfig.yml'):
|
||||
file_path = os.path.join(directory, filename)
|
||||
file_path = os.path.join(root, filename)
|
||||
if os.path.exists(file_path):
|
||||
with open(file_path, 'r') as file:
|
||||
content = yaml.safe_load(file)
|
||||
|
|
Loading…
Reference in New Issue