Skip to content

Commit

Permalink
Clean up examples first and move new in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
PProfizi committed Nov 21, 2023
1 parent 673eb01 commit ed6cc8f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ansys_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
import glob
import os
for example in glob.iglob('*.ipynb'):
for example in glob.glob('*.ipynb'):
os.remove(example)
- name: "Download Release Asset - HTML"
Expand All @@ -58,7 +58,9 @@ jobs:
if not "examples" in os.listdir(os.getcwd()):
os.mkdir(os.path.join(os.getcwd(), "examples"))
print(os.listdir(os.getcwd()))
for example in glob.iglob('*.ipynb'):
for folder in os.listdir(os.path.join(os.getcwd(), "_downloads")):
print(os.listdir(folder))
for example in glob.glob('*.ipynb'):
print(f"Moving {example}")
shutil.move(example, os.path.join(os.getcwd(), "examples"))
print(os.listdir(os.path.join(os.getcwd(), "examples")))
Expand Down

0 comments on commit ed6cc8f

Please sign in to comment.