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 4f205ea commit 03ce651
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 @@ -36,6 +36,8 @@ 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"))
- name: "Download Release Asset - HTML"
uses: dsaltares/[email protected]
Expand All @@ -54,9 +56,9 @@ jobs:
with zipfile.ZipFile("HTML-doc-ansys-dpf-core.zip", 'r') as z:
[z.extract(file, "./") for file in z.namelist() if file.endswith(".ipynb")]
os.remove("HTML-doc-ansys-dpf-core.zip")
for example in glob.iglob('*.ipynb'):
shutil.move(example, "./examples/")
shutil.move(example, os.path.join(os.getcwd()+"/examples"))
- name: "Push changes"
shell: bash
Expand Down

0 comments on commit 03ce651

Please sign in to comment.