Skip to content

Commit 3edd57f

Browse files
committed
test incremental mode
1 parent 4249bb2 commit 3edd57f

4 files changed

Lines changed: 247 additions & 354 deletions

File tree

.github/workflows/automatic_image_genration.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ jobs:
132132
echo "📁 Output directory: $output_dir"
133133
134134
# Determine processing mode
135-
if [ "${{ github.event.inputs.regenerate_all }}" = "true" ] || [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
135+
if [ "${{ github.event.inputs.regenerate_all }}" = "true" ]; then
136136
echo "🔄 FULL REGENERATION MODE - Processing all files"
137137
puml_files=$(find $rel_plantuml_input_dir -name "*.puml" -o -name "*.plantuml" 2>/dev/null)
138138
@@ -145,7 +145,7 @@ jobs:
145145
echo "$puml_files"
146146
else
147147
echo "⚡ INCREMENTAL MODE - Processing only changed files"
148-
changed_puml_files=$(git diff --name-only HEAD~1 HEAD | grep -E '\.(puml|plantuml)$' | grep '^${rel_plantuml_input_dir}/' || true)
148+
changed_puml_files=$(git diff --name-only HEAD~1 HEAD | grep -E '\.(puml|plantuml)$' | grep "^${rel_plantuml_input_dir}/" || true)
149149
150150
if [ -z "$changed_puml_files" ]; then
151151
echo "ℹ️ No PlantUML files changed in this commit"
@@ -245,7 +245,7 @@ jobs:
245245
echo "📁 Output directory: $output_dir"
246246
247247
# Determine processing mode
248-
if [ "${{ github.event.inputs.regenerate_all }}" = "true" ] || [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
248+
if [ "${{ github.event.inputs.regenerate_all }}" = "true" ]; then
249249
echo "🔄 FULL REGENERATION MODE - Processing all files"
250250
drawio_files=$(find $rel_drawio_input_dir -name "*.drawio" -o -name "*.dio" 2>/dev/null)
251251
@@ -258,7 +258,7 @@ jobs:
258258
echo "$drawio_files"
259259
else
260260
echo "⚡ INCREMENTAL MODE - Processing only changed files"
261-
changed_drawio_files=$(git diff --name-only HEAD~1 HEAD | grep -E '\.(drawio|dio)$' | grep '^${rel_drawio_input_dir}/' || true)
261+
changed_drawio_files=$(git diff --name-only HEAD~1 HEAD | grep -E '\.(drawio|dio)$' | grep "^${rel_drawio_input_dir}/" || true)
262262
263263
if [ -z "$changed_drawio_files" ]; then
264264
echo "ℹ️ No drawio files changed in this commit"

0 commit comments

Comments
 (0)