From b2851c1cd8a0b403605f4a37e072fa20ad2ff71c Mon Sep 17 00:00:00 2001 From: Isaac Date: Sun, 3 Mar 2024 20:35:52 +0000 Subject: [PATCH] ci: only group errors --- scripts/check-i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/check-i18n.js b/scripts/check-i18n.js index cd00c86..7597077 100644 --- a/scripts/check-i18n.js +++ b/scripts/check-i18n.js @@ -191,22 +191,22 @@ async function summarise() { for (const locale of locales) { // thanks copilot - console.log(`::group::${locale}`); const localeErrors = errors.filter(error => error.locale === locale); summary += `## \`${locale}\`\n\n`; if (localeErrors.length > 0) { + console.log(`::group::${locale}`); for (const error of localeErrors) { summary += `https://github.com/discord-tickets/bot/blob/${branch}/src/i18n/${locale}.yml#L${error.line}\n\n`; console.log(`::error file=src/i18n/${locale}.yml,line=${error.line},col=${error.col}::${error.message}`); } + console.log('::endgroup::'); } else { summary += 'No errors found\n\n'; // console.log(`::notice file=src/i18n/${locale}.yml::No errors found`); } - console.log('::endgroup::'); } fs.writeFileSync(process.env.GITHUB_STEP_SUMMARY || 'summary.md', summary);