@@ -96,7 +96,6 @@ process_manual_trigger() {
96
96
local secret_project_id=$( get_locale_config " $locale_config " " $locale " " secret_project_id" )
97
97
local orama_private_api_key=$( get_locale_config " $locale_config " " $locale " " orama_private_api_key" )
98
98
99
- log " Adding $locale to deployment matrix"
100
99
matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
101
100
has_changes=" true"
102
101
fi
@@ -122,7 +121,6 @@ process_manual_trigger() {
122
121
local orama_private_api_key=$( get_locale_config " $locale_config " " $locale " " orama_private_api_key" )
123
122
124
123
if [ -n " $secret_project_id " ]; then
125
- log " Adding $locale to deployment matrix"
126
124
matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
127
125
has_changes=" true"
128
126
else
@@ -148,12 +146,8 @@ process_auto_trigger() {
148
146
local matrix_include=" []"
149
147
local has_changes=" false"
150
148
151
- log " Processing automatic/docs-pr trigger"
152
- log " Changes JSON: $changes_json "
153
-
154
149
# Check core changes
155
150
local core_changed=$( echo " $changes_json " | jq -r ' .core_any_changed // "false"' )
156
- log " Core changed: $core_changed "
157
151
158
152
# Check each locale dynamically from config
159
153
for locale in $( echo " $locale_config " | jq -r ' keys[]' ) ; do
@@ -164,11 +158,8 @@ process_auto_trigger() {
164
158
# Get locale change status dynamically from the changes JSON
165
159
local locale_changed=$( echo " $changes_json " | jq -r " .[\" ${locale} _any_changed\" ] // \" false\" " )
166
160
167
- log " Checking $locale : enabled=true, changed=$locale_changed , core_changed=$core_changed "
168
-
169
161
# Add to matrix if enabled and (core changed or locale changed)
170
162
if [ " $core_changed " == " true" ] || [ " $locale_changed " == " true" ]; then
171
- log " Adding $locale to deployment matrix"
172
163
matrix_include=$( add_locale_to_matrix " $matrix_include " " $locale " " $secret_project_id " " $orama_private_api_key " )
173
164
has_changes=" true"
174
165
fi
@@ -220,7 +211,6 @@ main() {
220
211
221
212
log " === Locale Matrix Generator ==="
222
213
log " Trigger type: $trigger_type "
223
- log " Locale config file: $LOCALE_CONFIG_FILE "
224
214
225
215
# Initialize global result variables
226
216
RESULT_MATRIX_INCLUDE=" "
@@ -261,20 +251,15 @@ main() {
261
251
has_changes=" $RESULT_HAS_CHANGES "
262
252
fi
263
253
264
- log " Final matrix: $matrix_include "
265
-
266
254
# Ensure the matrix is properly formatted as a single line
267
255
local matrix_output
268
256
if ! matrix_output=$( echo " $matrix_include " | jq -c ' .' ) ; then
269
257
echo " Error: Failed to format matrix as compact JSON" >&2
270
258
exit 1
271
259
fi
272
260
273
- log " Matrix output (compact): $matrix_output "
274
-
275
261
# Validate final JSON
276
262
if validate_json " $matrix_output " ; then
277
- log " JSON is valid"
278
263
echo " include=$matrix_output "
279
264
echo " has-changes=$has_changes "
280
265
else
0 commit comments