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 e095b0e commit 49d141d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/ansys_lab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,12 @@ jobs:
with:
ref: ${{ env.DESTINATION_BRANCH_NAME }}

- name: "Clean-up working directory"
shell: python
run: |
import glob
import os
- name: "Download Release Asset - HTML"
uses: dsaltares/fetch-gh-release-asset@1.1.0
with:
Expand All @@ -39,10 +45,14 @@ jobs:
shell: python
run: |
import os
import shutil
import zipfile
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/")
- name: "Push changes"
shell: bash
Expand Down

0 comments on commit 49d141d

Please sign in to comment.