Add persist_browser_session flag to workflows (#777)

This commit is contained in:
Kerem Yilmaz 2024-09-06 12:01:56 -07:00 committed by GitHub
parent be1c8ba060
commit 95b2e53c46
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 139 additions and 1 deletions

View file

@ -75,6 +75,11 @@ def zip_files(files_path: str, zip_file_path: str) -> str:
return zip_file_path
def unzip_files(zip_file_path: str, output_dir: str) -> None:
with zipfile.ZipFile(zip_file_path, "r") as zip_ref:
zip_ref.extractall(output_dir)
def get_path_for_workflow_download_directory(workflow_run_id: str) -> Path:
return Path(f"{REPO_ROOT_DIR}/downloads/{workflow_run_id}/")