Skip to content

Commit

Permalink
refactor: adiciona quebra de action quando há reports
Browse files Browse the repository at this point in the history
  • Loading branch information
katiacih committed Aug 2, 2023
2 parents 14f9f55 + ca09953 commit 4534e97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dist/index.js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9742,6 +9742,7 @@ module.exports = {

function writeReport(report) {
console.log(`Version: ${report[0].version}`)
<<<<<<< HEAD
if(report[0].file.length === 0) {
console.log('✅ APROVADO')
}
Expand All @@ -9756,6 +9757,14 @@ function writeReport(report) {
}
throw new Error('Realize os ajustes necessário e tente novamente')

=======
console.log('Verifique os erros abaixo:')
if(report.length > 0 && report[0].file.length > 0) {
report[0].file.forEach((element) => {
core.setFailed(`\u001b[38;5;6m ❌ [erro] Arquivo: ${element.name}`)
console.table(element.error)
})
>>>>>>> origin/v1
}
}

Expand Down

0 comments on commit 4534e97

Please sign in to comment.