@@ -96,7 +96,6 @@ process_manual_trigger() {
9696 local secret_project_id=$( get_locale_config " $locale_config " " $locale " " secret_project_id" )
9797 local orama_private_api_key=$( get_locale_config " $locale_config " " $locale " " orama_private_api_key" )
9898
99- log " Adding $locale to deployment matrix"
10099 matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
101100 has_changes=" true"
102101 fi
@@ -122,7 +121,6 @@ process_manual_trigger() {
122121 local orama_private_api_key=$( get_locale_config " $locale_config " " $locale " " orama_private_api_key" )
123122
124123 if [ -n " $secret_project_id " ]; then
125- log " Adding $locale to deployment matrix"
126124 matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
127125 has_changes=" true"
128126 else
@@ -148,12 +146,8 @@ process_auto_trigger() {
148146 local matrix_include=" []"
149147 local has_changes=" false"
150148
151- log " Processing automatic/docs-pr trigger"
152- log " Changes JSON: $changes_json "
153-
154149 # Check core changes
155150 local core_changed=$( echo " $changes_json " | jq -r ' .core_any_changed // "false"' )
156- log " Core changed: $core_changed "
157151
158152 # Check each locale dynamically from config
159153 for locale in $( echo " $locale_config " | jq -r ' keys[]' ) ; do
@@ -164,11 +158,8 @@ process_auto_trigger() {
164158 # Get locale change status dynamically from the changes JSON
165159 local locale_changed=$( echo " $changes_json " | jq -r " .[\" ${locale} _any_changed\" ] // \" false\" " )
166160
167- log " Checking $locale : enabled=true, changed=$locale_changed , core_changed=$core_changed "
168-
169161 # Add to matrix if enabled and (core changed or locale changed)
170162 if [ " $core_changed " == " true" ] || [ " $locale_changed " == " true" ]; then
171- log " Adding $locale to deployment matrix"
172163 matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
173164 has_changes=" true"
174165 fi
@@ -220,7 +211,6 @@ main() {
220211
221212 log " === Locale Matrix Generator ==="
222213 log " Trigger type: $trigger_type "
223- log " Locale config file: $LOCALE_CONFIG_FILE "
224214
225215 # Initialize global result variables
226216 RESULT_MATRIX_INCLUDE=" "
@@ -261,20 +251,15 @@ main() {
261251 has_changes=" $RESULT_HAS_CHANGES "
262252 fi
263253
264- log " Final matrix: $matrix_include "
265-
266254 # Ensure the matrix is properly formatted as a single line
267255 local matrix_output
268256 if ! matrix_output=$( echo " $matrix_include " | jq -c ' .' ) ; then
269257 echo " Error: Failed to format matrix as compact JSON" >&2
270258 exit 1
271259 fi
272260
273- log " Matrix output (compact): $matrix_output "
274-
275261 # Validate final JSON
276262 if validate_json " $matrix_output " ; then
277- log " JSON is valid"
278263 echo " include=$matrix_output "
279264 echo " has-changes=$has_changes "
280265 else
0 commit comments