Skip to content

Commit c9c1398

Browse files
committed
222
1 parent a3e0e27 commit c9c1398

1 file changed

Lines changed: 12 additions & 19 deletions

File tree

.github/workflows/automatic_image_genration.yml

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,6 @@ jobs:
115115
echo "🧪 Testing PlantUML installation..."
116116
echo "PlantUML Version: $(java -jar /tmp/plantuml.jar -version)"
117117
118-
- name: 📥 Download and setup drawio
119-
run: |
120-
sudo snap install drawio --classic
121-
122118
- name: 🎨 Generate PlantUML images (debug mode)
123119
run: |
124120
echo "=== 🎨 Generating PlantUML images ==="
@@ -282,13 +278,12 @@ jobs:
282278
echo ""
283279
echo "🖼️ Generating PNG for: $file"
284280
285-
xvfb-run --auto-servernum drawio --no-sandbox --disable-gpu --export --format png --scale 4 --output "${output_dir}/${prefix_base}.png" "$file"
286-
#docker run --rm \
287-
# -v "$(pwd):/data" \
288-
# rlespinasse/drawio-export:4.4.0 \
289-
# --format png \
290-
# --output "$output_dir" \
291-
# $file
281+
docker run --rm \
282+
-v "$(pwd):/data" \
283+
rlespinasse/drawio-export:4.4.0 \
284+
--path "$file" \
285+
--format png \
286+
--output "$output_dir"
292287
293288
png_exit_code=$?
294289
echo "📊 Docker PNG exit code: $png_exit_code"
@@ -309,14 +304,12 @@ jobs:
309304
echo ""
310305
echo "🎭 Generating SVG for: $file"
311306
312-
313-
xvfb-run --auto-servernum drawio --no-sandbox --disable-gpu --export --format svg --output "${output_dir}/${prefix_base}.svg" "$file"
314-
#docker run --rm \
315-
# -v "$(pwd):/data" \
316-
# rlespinasse/drawio-export:4.4.0 \
317-
# --format svg \
318-
# --output "$output_dir" \
319-
# $file
307+
docker run --rm \
308+
-v "$(pwd):/data" \
309+
rlespinasse/drawio-export:4.4.0 \
310+
--path "$file" \
311+
--format svg \
312+
--output "$output_dir"
320313
321314
svg_exit_code=$?
322315
echo "📊 Docker SVG exit code: $svg_exit_code"

0 commit comments

Comments
 (0)