From 9d90ffa6a9564a3544ac0fd1766a5b87069d8867 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Tue, 21 Nov 2023 17:54:58 +0100 Subject: [PATCH] Clean up examples first and move new in examples --- .github/workflows/ansys_lab.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ansys_lab.yml b/.github/workflows/ansys_lab.yml index f3945719ed..1d66c6383f 100644 --- a/.github/workflows/ansys_lab.yml +++ b/.github/workflows/ansys_lab.yml @@ -34,7 +34,7 @@ jobs: import glob import os - for example in glob.glob('**/*.ipynb'): + for example in glob.glob('**/*.ipynb', recursive=True): os.remove(example) print(f"Deleted {example}") @@ -61,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', recursive=True): print(f"Moving {example}") shutil.move(example, os.path.join(os.getcwd(), "examples")) print(os.listdir(os.path.join(os.getcwd(), "examples")))