Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bubbles-wow authored Aug 8, 2023
1 parent 266d4b9 commit a26ef83
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,9 @@ jobs:
if url.split("/")[2] == "tlu.dl.delivery.mp.microsoft.com":
print(url)
break
with open(dir / Filename, "wb") as f, requests.get(url, stream=True) as res:
for chunk in res.iter_content(chunk_size=4*1024):
if chunk:
f.write(chunk)
if Path.exists(dir / Filename):
file = requests.get(url, stream=True)
open(${{ github.workspace }} + "/" + Filename, "wb").write(file.content)
if Path.exists(${{ github.workspace }} + "/" + Filename):
print("Done!")
- name: upload result
Expand Down

0 comments on commit a26ef83

Please sign in to comment.