6060 echo "PlantUML file count: $(find ${{ env.REL_PLANTUML_INPUT_DIR }} -name "*.puml" -o -name "*.plantuml" | wc -l)"
6161 else
6262 echo "❌ ${{ env.REL_PLANTUML_INPUT_DIR }} directory not found"
63+ exit 1
6364 fi
6465 echo ""
6566 echo "=== src/drawio contents ==="
6869 echo "Draw.io file count: $(find ${{ env.REL_DRAWIO_INPUT_DIR }} -name "*.drawio" -o -name "*.dio" | wc -l)"
6970 else
7071 echo "❌ ${{ env.REL_DRAWIO_INPUT_DIR }} directory not found"
72+ exit 1
7173 fi
7274
7375 - name : ☕ Set up JDK 11
@@ -188,6 +190,7 @@ jobs:
188190 echo "📊 PlantUML PNG exit code: $png_exit_code"
189191 if [ -n "$png_exit_code" ] && [ "$png_exit_code" -ne 0 ]; then
190192 echo "❌ PNG generation failed!"
193+ exit 1
191194 else
192195 echo "✅ PNG generation command completed"
193196 fi
@@ -197,6 +200,7 @@ jobs:
197200 echo "✅ Final PNG: ${output_dir}/${prefix_base}.png"
198201 else
199202 echo "❌ Expected PNG not found: ${output_dir}/${prefix_base}.png"
203+ exit 1
200204 fi
201205
202206 # Generate SVG with full debugging
@@ -210,6 +214,7 @@ jobs:
210214 echo "📊 PlantUML SVG exit code: $svg_exit_code"
211215 if [ -n "$svg_exit_code" ] && [ "$svg_exit_code" -ne 0 ]; then
212216 echo "❌ SVG generation failed!"
217+ exit 1
213218 else
214219 echo "✅ SVG generation command completed"
215220 fi
@@ -219,6 +224,7 @@ jobs:
219224 echo "✅ Final SVG: ${output_dir}/${prefix_base}.svg"
220225 else
221226 echo "❌ Expected SVG not found: ${output_dir}/${prefix_base}.svg"
227+ exit 1
222228 fi
223229
224230 echo "📁 Final output directory state:"
@@ -304,6 +310,7 @@ jobs:
304310 echo "📊 Docker PNG exit code: $png_exit_code"
305311 if [ -n "$png_exit_code" ] && [ "$png_exit_code" -ne 0 ]; then
306312 echo "❌ PNG generation failed!"
313+ exit 1
307314 else
308315 echo "✅ PNG generation command completed"
309316 fi
@@ -352,6 +359,7 @@ jobs:
352359 echo "📊 Docker SVG exit code : $svg_exit_code"
353360 if [ -n "$svg_exit_code" ] && [ "$svg_exit_code" -ne 0 ]; then
354361 echo "❌ SVG generation failed!"
362+ exit 1
355363 else
356364 echo "✅ SVG generation command completed"
357365 fi
0 commit comments