Skip to content

Commit

Permalink
Missing import, conclusion check
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbowly committed Jan 12, 2024
1 parent a7f73c0 commit a5725bb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions artifacts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import io
import os
import pathlib
import sys
import zipfile

import requests
Expand Down Expand Up @@ -28,6 +29,8 @@ def download_executed_notebooks(runs_url, gh_token, head_sha):
continue
if run["status"] != "completed":
continue
if run["conclusion"] != "success":
continue

artifacts_url = run["artifacts_url"]
response = requests.get(artifacts_url, headers=headers)
Expand Down

0 comments on commit a5725bb

Please sign in to comment.