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 f2b3560 commit c7429be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ansys_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,6 @@ jobs:
for example in glob.iglob('*.ipynb'):
os.remove(example)
if not "examples" in os.listdir(os.getcwd()):
os.mkdir(os.path.join(os.getcwd(), "examples"))
print(os.listdir(os.getcwd()))
- name: "Download Release Asset - HTML"
uses: dsaltares/fetch-gh-release-asset@1.1.0
Expand All @@ -58,6 +55,9 @@ jobs:
[z.extract(file, "./") for file in z.namelist() if file.endswith(".ipynb")]
os.remove("HTML-doc-ansys-dpf-core.zip")
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'):
shutil.move(example, os.path.join(os.getcwd(), "examples"))
print(os.listdir(os.path.join(os.getcwd(), "examples")))
Expand Down

0 comments on commit c7429be

Please sign in to comment.