@@ -43,38 +43,38 @@ jobs:
43
43
run : |
44
44
img_dir=ImplementationGuide/images/diagrams
45
45
mkdir -p $img_dir
46
- rm -rf ImplementationGuide/images/diagrams/*.svg
46
+ rm -rf ImplementationGuide/images/diagrams/*.png
47
47
48
- # Generate the SVGs from PUML
49
- - name : Render PUML to SVG and Move files
48
+ # Generate the PNGs from PUML
49
+ - name : Render PUML to PNG and Move files
50
50
run : |
51
51
FileNamePaths=$(find . -path "*/imgsrc/*/*.puml" -exec dirname {} \; | sort -u)
52
52
for dir in $FileNamePaths
53
53
do
54
- # Render SVGs from PUMLs
55
- find $dir -name "*.puml" -exec java -jar plantuml.jar -tsvg {} \;
54
+ # Render PNGs from PUMLs
55
+ find $dir -name "*.puml" -exec java -jar plantuml.jar -png {} \;
56
56
done
57
57
58
- # Generate the SVGs from DrawIO
59
- - name : Render DrawIO to SVG with predefined action
58
+ # Generate the PNGs from DrawIO
59
+ - name : Render DrawIO to PNG with predefined action
60
60
uses : rlespinasse/drawio-export-action@v2
61
61
with :
62
62
path : ./Material/imgsrc/drawio/
63
63
remove-page-suffix : true
64
64
output : .
65
- format : svg
65
+ format : png
66
66
action-mode : all
67
67
68
- # copies the created png & svg files to the images/diagrams folder and deletes the drawio files
69
- - name : Move SVGs to target image folder
68
+ # copies the created png & png files to the images/diagrams folder and deletes the drawio files
69
+ - name : Move PNGs to target image folder
70
70
run : |
71
71
img_dir=ImplementationGuide/images/diagrams
72
- # Find all unique directories containing *.svg files under any /imgsrc/ folder
73
- FileNamePaths=$(find . -path "*/imgsrc/*/*.svg " -exec dirname {} \; | sort -u)
72
+ # Find all unique directories containing *.png files under any /imgsrc/ folder
73
+ FileNamePaths=$(find . -path "*/imgsrc/*/*.png " -exec dirname {} \; | sort -u)
74
74
for dir in $FileNamePaths
75
75
do
76
- # Move SVGs to out directory
77
- find $dir -name "*.svg " -exec mv {} $img_dir \;
76
+ # Move PNGs to out directory
77
+ find $dir -name "*.png " -exec mv {} $img_dir \;
78
78
done
79
79
80
80
# # add and commit the new generated files
94
94
with :
95
95
commit_user_name : GitHub Actions Bot
96
96
commit_user_email :
[email protected]
97
- commit_author : ${{ github.actor }}
98
97
commit_message : auto-generated diagrams by GitHub Action after source code change
0 commit comments