write_workflow
write_workflow(
document: Mapping ,
path: Path ,
)-> ‘Path’
Write a workflow document to a file, in the format its suffix names.
.yaml and .yml write YAML, .json and a bare name write JSON, and anything else is refused.