feat: skip on empty toml
All checks were successful
build / build (push) Successful in 2m26s
build / trigger-build-image (push) Successful in 12s

This commit is contained in:
张泊明518370910136 2025-10-09 00:30:03 -07:00
parent dd5f1123b4
commit d819847e8a
GPG Key ID: D47306D7062CDA9D

View File

@ -106,6 +106,9 @@ def convert(
for task_toml_path in repo_toml_path.parent.glob("**/*.toml"):
if repo_toml_path == task_toml_path:
continue
if len(task_toml_path.read_bytes()) == 0:
logger.info(f"Skipping empty task toml file {task_toml_path}")
continue
toml_name = task_toml_path.name.removesuffix(".toml")
result_json_path = task_toml_path.parent / f"{toml_name}.json"
logger.info(