fix: отделить delimiter результата ревью от JSON (#551)

Issue: #551
User-Visible: no
This commit is contained in:
Sergey Matyunin
2026-09-13 14:34:17 +03:00
parent 23f48829c2
commit 62e0eff219
3 changed files with 26 additions and 5 deletions
+5 -5
View File
@@ -1212,11 +1212,11 @@ jobs:
(.verdict == "green" or .verdict == "yellow" or .verdict == "red")
and (.high | type == "number") and (.medium | type == "number")
and (.summary | type == "string")' "$dir/verdict.json" >/dev/null
{
echo 'structured_output<<EOF_RESULT'
cat "$dir/verdict.json"
echo 'EOF_RESULT'
} >> "$GITHUB_OUTPUT"
printf 'structured_output<<EOF_RESULT\n' >> "$GITHUB_OUTPUT"
cat "$dir/verdict.json" >> "$GITHUB_OUTPUT"
# structured_output не обязан оканчиваться LF: delimiter команды
# GitHub должен начинаться с отдельной строки.
printf '\nEOF_RESULT\n' >> "$GITHUB_OUTPUT"
# Ревьюер пишет только в docs/reviews/. Что именно попадёт в коммит,
# решает этот шаг, а не модель: всё остальное откатывается.