Skip to content

Commit 0ffd0d9

Browse files
committed
11
1 parent b31bc1a commit 0ffd0d9

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

.github/workflows/automatic_image_genration.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@ on:
1515
required: false
1616
default: false
1717
type: boolean
18-
continue_on_error:
19-
description: 'Run full script even on errors'
20-
required: false
21-
default: false
22-
type: boolean
2318

2419
env:
2520
OUTPUT_DIR: $(pwd)/images
@@ -121,7 +116,6 @@ jobs:
121116
echo "PlantUML Version: $(java -jar /tmp/plantuml.jar -version)"
122117
123118
- name: 🎨 Generate PlantUML images (debug mode)
124-
continue-on-error: ${{ github.event.inputs.continue_on_error }}
125119
run: |
126120
echo "=== 🎨 Generating PlantUML images ==="
127121
@@ -180,6 +174,7 @@ jobs:
180174
echo ""
181175
echo "🖼️ Generating PNG for: $file"
182176
177+
# using "cat" because standard output name of PlantUML ist the uml diagram name (with potential problematic characters for file names) and not the name of the input file
183178
cat "$file" | java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 -pipe "$file" > "${output_dir}/${prefix_base}.png"
184179
#java -jar /tmp/plantuml.jar -tpng -nometadata -scale 4 "$file" || echo " WARNING: PNG generation command may have failed for $file (Exit Code: $?)" >&2
185180
@@ -202,6 +197,7 @@ jobs:
202197
echo ""
203198
echo "🎭 Generating SVG for: $file"
204199
200+
# using "cat" because standard output name of PlantUML ist the uml diagram name (with potential problematic characters for file names) and not the name of the input file
205201
cat "$file" | java -jar /tmp/plantuml.jar -tsvg -nometadata -scale 4 -pipe "$file" > "${output_dir}/${prefix_base}.svg"
206202
#java -jar /tmp/plantuml.jar -tsvg -nometadata -scale 4 "$file" || echo " WARNING: SVG generation command may have failed for $file (Exit Code: $?)" >&2
207203
@@ -226,7 +222,6 @@ jobs:
226222
done
227223
228224
- name: 🎯 Generate Draw.io images (debug mode)
229-
continue-on-error: ${{ github.event.inputs.continue_on_error }}
230225
run: |
231226
echo "=== 🎯 Generating Draw.io images ==="
232227
@@ -285,12 +280,13 @@ jobs:
285280
echo ""
286281
echo "🖼️ Generating PNG for: $file"
287282
283+
echo "(docker run --rm rlespinasse/drawio-export --help)"
288284
docker run --rm \
289285
-v "$(pwd):/data" \
290286
rlespinasse/drawio-export:4.4.0 \
291287
--format png \
292288
--output "$output_dir" \
293-
"$file"
289+
$file
294290
295291
png_exit_code=$?
296292
echo "📊 Docker PNG exit code: $png_exit_code"
@@ -319,8 +315,7 @@ jobs:
319315
rlespinasse/drawio-export:4.4.0 \
320316
--format svg \
321317
--output "$output_dir" \
322-
"$file" \
323-
2>&1 | sed 's/^/ | /'
318+
$file
324319
325320
svg_exit_code=$?
326321
echo "📊 Docker SVG exit code: $svg_exit_code"

0 commit comments

Comments
 (0)