@@ -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