Skip to content

Commit b565a6f

Browse files
committed
111
1 parent 7c3d1e1 commit b565a6f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/automatic_image_genration.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ jobs:
169169
fi
170170
171171
# process file
172-
#base=$(basename "$file" | sed 's/\.[^.]*$//')
173-
base=${file%.*}
172+
base=$(basename "$file" | sed 's/\.[^.]*$//')
173+
#base=${file%.*}
174174
prefix_base="${{ env.PLANTUML_PREFIX }}${base}"
175175
echo "📝 Prefix Base name: $prefix_base"
176176
echo "📊 File size: $(ls -lh "$file" | awk '{print $5}')"
@@ -184,8 +184,8 @@ jobs:
184184
echo ""
185185
echo "🖼️ Generating PNG for: $file"
186186
187-
cat "$file" | java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 -pipe > "${output_abs}/${prefix_base}.png"
188-
# java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 "$file" || echo " WARNING: PNG generation command may have failed for $file (Exit Code: $?)" >&2
187+
cat "$file" | java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 -pipe "$file" > "${output_abs}/${prefix_base}.png"
188+
#java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 "$file" || echo " WARNING: PNG generation command may have failed for $file (Exit Code: $?)" >&2
189189
190190
png_exit_code=$?
191191
echo "📊 PNG generation exit code: $png_exit_code"
@@ -218,7 +218,7 @@ jobs:
218218
echo ""
219219
echo "🎭 Generating SVG for: $file"
220220
221-
java -jar /tmp/plantuml.jar -tsvg -nometadata "$file" || echo " WARNING: SVG generation command may have failed for $file (Exit Code: $?)" >&2
221+
java -jar /tmp/plantuml.jar -tsvg -nometadata -scale 4 -filename "${base}.puml" "$file" || echo " WARNING: SVG generation command may have failed for $file (Exit Code: $?)" >&2
222222
223223
svg_exit_code=$?
224224
echo "📊 SVG generation exit code: $svg_exit_code"

0 commit comments

Comments
 (0)