only run script when generate_script is true (#3491)

This commit is contained in:
Shuchang Zheng
2025-09-21 02:45:23 -04:00
committed by GitHub
parent 770be508e3
commit 9a9ee01253
9 changed files with 186 additions and 142 deletions

View File

@@ -1813,9 +1813,6 @@ async def generate_workflow_script_python_code(
]
module = cst.Module(body=module_body)
with open(file_name, "w") as f:
f.write(module.code)
return module.code