pub fn write_artifact(run: &RunState, name: &str, body: &str) -> Result<PathBuf>
Write an artifact, creating the directory if needed.