CI - YAML formatting issue (#23047)

* CI

* CI
This commit is contained in:
Pere Miquel Brull 2025-08-21 18:05:15 +02:00 committed by GitHub
parent 20486c23c5
commit dbe8d5ed00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 48 additions and 45 deletions

View File

@ -6,4 +6,7 @@ import yaml
path = sys.argv[1]
if os.path.islink(path):
exit()
yaml.safe_load(open(path, "r"))
with open(path, "r") as f:
# safe_load_all works for both single and multi-document YAML
list(yaml.safe_load_all(f))