Skip to content

Commit

Permalink
with loop
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMTheilig committed Jan 9, 2024
1 parent a3427de commit 43cbf0a
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/RenderAllDiagrams.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ jobs:
- name: Move SVGs to target image folder
run: |
img_dir=ImplementationGuide/images/diagrams
inp_dir1=./Material/imgsrc/drawio/
inp_dir2=./Material/imgsrc/plantuml/
find $inp_dir1 -name "*.svg" -exec mv {} $img_dir \;
find $inp_dir2 -name "*.svg" -exec mv {} $img_dir \;
# Find all unique directories containing *.svg files under any /imgsrc/ folder
FileNamePaths=$(find . -path "*/imgsrc/*/*.svg" -exec dirname {} \; | sort -u)
for dir in $FileNamePaths
do
# Move SVGs to out directory
find $dir -name "*.svg" -exec mv {} $img_dir \;
done

# add and commit the new generated files
- name: Create Pull Request
Expand Down

0 comments on commit 43cbf0a

Please sign in to comment.