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 0a2477c commit 6943489
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ansys_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,9 @@ jobs:
import glob
import os
for example in glob.glob('*.ipynb'):
os.remove(example)
for example in glob.glob('**/*.ipynb'):
os.remove(example)
print(f"Deleted {example}")
- name: "Download Release Asset - HTML"
uses: dsaltares/[email protected]
Expand All @@ -60,7 +61,7 @@ jobs:
print(os.listdir(os.getcwd()))
for folder in os.listdir(os.path.join(os.getcwd(), "_downloads")):
print(os.listdir(os.path.join(os.path.join(os.getcwd(), "_downloads"), folder)))
for example in glob.glob('*.ipynb'):
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 6943489

Please sign in to comment.