Skip to content

Commit

Permalink
refactor: destaca arquivo com core
Browse files Browse the repository at this point in the history
  • Loading branch information
katiacih committed Aug 2, 2023
1 parent ed977ca commit ca09953
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/controller/writeOutput.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
})
}
Expand Down

0 comments on commit ca09953

Please sign in to comment.