@@ -182,8 +182,6 @@ jobs:
182182 # Generate PNG with full debugging
183183 echo ""
184184 echo "🖼️ Generating PNG for: $file"
185- echo "📜 Command: java -jar /tmp/plantuml.jar -v -tpng "$file" -o "$output_abs" -filename "${prefix_base}" > /tmp/plantuml-png.log 2>&1
186- png_exit_code=$?
187185
188186 java -jar /tmp/plantuml.jar -v -tpng "$file" -o "$output_abs" -filename "${prefix_base}" > /tmp/plantuml-png.log 2>&1
189187 png_exit_code=$?
@@ -210,8 +208,6 @@ jobs:
210208 # Generate SVG with full debugging
211209 echo ""
212210 echo "🎭 Generating SVG for: $file"
213- echo "📜 Command: java -jar /tmp/plantuml.jar -v -tsvg "$file" -o "$output_abs" -filename "$prefix_base" > /tmp/plantuml-svg.log 2>&1
214- svg_exit_code=$?
215211
216212 java -jar /tmp/plantuml.jar -v -tsvg "$file" -o "$output_abs" -filename "$prefix_base" > /tmp/plantuml-svg.log 2>&1
217213 svg_exit_code=$?
@@ -286,17 +282,21 @@ jobs:
286282 -v $(pwd):/data \
287283 rlespinasse/drawio-export:4.4.0 \
288284 --format png \
289- --output "${{ env.OUTPUT_DIR }}/"$prefix_base" \
285+ --output "${{ env.OUTPUT_DIR }} \
286+ "$file" \
290287 2>&1 | sed 's/^/ | /'
291288
292289 png_exit_code=${PIPESTATUS[0]}
293290 echo "📊 Docker PNG exit code: $png_exit_code"
294291
295- # Check for file
296- if [ -f "${{ env.OUTPUT_DIR }}/${prefix_base}.png" ]; then
297- echo "✅ Generated PNG: ${prefix_base}.png"
292+ # Check and rename PNG
293+ if [ -f "${{ env.OUTPUT_DIR }}/${base}.png" ]; then
294+ mv "${{ env.OUTPUT_DIR }}/${base}.png" "${{ env.OUTPUT_DIR }}/${prefix_base}.png"
295+ echo "✅ Generated PNG: ${{ env.OUTPUT_DIR }}/${prefix_base}.png"
298296 else
299- echo "❌ PNG not created: ${prefix_base}.png"
297+ echo "❌ PNG not created: ${{ env.OUTPUT_DIR }}/${prefix_base}.png"
298+ echo "📁 Current output directory contents:"
299+ ls -la "${{ env.OUTPUT_DIR }}/" | sed 's/^/ | /'
300300 fi
301301
302302 # Generate SVG with debugging
@@ -307,17 +307,21 @@ jobs:
307307 -v $(pwd):/data \
308308 rlespinasse/drawio-export:4.4.0 \
309309 --format svg \
310- --output "${{ env.OUTPUT_DIR }}/"$prefix_base" \
310+ --output "${{ env.OUTPUT_DIR }} \
311+ "$file" \
311312 2>&1 | sed 's/^/ | /'
312313
313314 svg_exit_code=${PIPESTATUS[0]}
314315 echo "📊 Docker SVG exit code: $svg_exit_code"
315316
316- # Check for file
317- if [ -f "${{ env.OUTPUT_DIR }}/${prefix_base}.svg" ]; then
318- echo "✅ Generated SVG: ${prefix_base}.svg (already correctly prefixed)"
317+ # Check and rename SVG
318+ if [ -f "${{ env.OUTPUT_DIR }}/${base}.svg" ]; then
319+ mv "${{ env.OUTPUT_DIR }}/${base}.svg" "${{ env.OUTPUT_DIR }}/${prefix_base}.svg"
320+ echo "✅ Generated SVG: ${{ env.OUTPUT_DIR }}/${prefix_base}.svg"
319321 else
320- echo "❌ SVG not created: ${prefix_base}.svg"
322+ echo "❌ SVG not created: ${{ env.OUTPUT_DIR }}/${prefix_base}.svg"
323+ echo "📁 Current output directory contents:"
324+ ls -la "${{ env.OUTPUT_DIR }}/" | sed 's/^/ | /'
321325 fi
322326
323327 echo "📁 Final output directory state:"
0 commit comments