From ca099532a4903abd6625f708cb74879464e9d682 Mon Sep 17 00:00:00 2001 From: katiacih Date: Wed, 2 Aug 2023 10:37:35 -0300 Subject: [PATCH] refactor: destaca arquivo com core --- dist/index.js/index.js | 2 +- src/controller/writeOutput.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js/index.js b/dist/index.js/index.js index bc8c4ed..8fbe84a 100644 --- a/dist/index.js/index.js +++ b/dist/index.js/index.js @@ -9745,7 +9745,7 @@ function writeReport(report) { console.log('Verifique os erros abaixo:') if(report.length > 0 && report[0].file.length > 0) { report[0].file.forEach((element) => { - console.log(`Arquivo: ${element.name}`) + core.setFailed(`\u001b[38;5;6m ❌ [erro] Arquivo: ${element.name}`) console.table(element.error) }) } diff --git a/src/controller/writeOutput.js b/src/controller/writeOutput.js index ca4b836..65ca360 100644 --- a/src/controller/writeOutput.js +++ b/src/controller/writeOutput.js @@ -15,7 +15,7 @@ function writeReport(report) { console.log('Verifique os erros abaixo:') if(report.length > 0 && report[0].file.length > 0) { report[0].file.forEach((element) => { - console.log(`Arquivo: ${element.name}`) + core.setFailed(`\u001b[38;5;6m ❌ [erro] Arquivo: ${element.name}`) console.table(element.error) }) }