tasks/libs/common/github_workflows.py
def download_artifact(self, artifact_id, destination_dir):
        """
        Downloads the artifact identified by artifact_id to destination_dir.
        """
        path = f"/repos/{self.repository}/actions/artifacts/{artifact_id}/zip"
        content = self.make_request(path, method="GET", raw_output=True)

        zip_target_path = os.path.join(destination_dir, f"{artifact_id}.zip")
        with open(zip_target_path, "wb") as f:
            f.write(content)
        return zip_target_path

        Downloads the artifact identified by artifact_id to destination_dir.
        
Downloads the artifact identified by artifact_id to destination_dir.
Downloads the artifact identified by artifact_id to destination_dir .
def download_artifact(self, artifact_id, destination_dir):
        path = f"/repos/{self.repository}/actions/artifacts/{artifact_id}/zip"
        content = self.make_request(path, method="GET", raw_output=True)
        zip_target_path = os.path.join(destination_dir, f"{artifact_id}.zip")
        with open(zip_target_path, "wb") as f:
            f.write(content)
        return zip_target_path
def download_artifact ( self , artifact_id , destination_dir ) : path = f"/repos/{self.repository}/actions/artifacts/{artifact_id}/zip" content = self . make_request ( path , method = "GET" , raw_output = True ) zip_target_path = os . path . join ( destination_dir , f"{artifact_id}.zip" ) with open ( zip_target_path , "wb" ) as f : f . write ( content ) return zip_target_path
Downloads the artifact identified by artifact_id to destination_dir.
Downloads the artifact identified by artifact_id to destination_dir .
"""
        Downloads the artifact identified by artifact_id to destination_dir.
        """
self
artifact_id
destination_dir