Skip to content

Commit

Permalink
Improve output with errors
Browse files Browse the repository at this point in the history
  • Loading branch information
piraces committed Apr 20, 2021
1 parent c08f0d9 commit 8d395d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12507,6 +12507,9 @@ function processFilesWithKubeScore(files, stream) {
else {
core.setFailed('[KUBE-SCORE] Scan failed...');
}
if (stream) {
stream.write(`\n\n*** End analysis for file '${file}' ***\n\n`);
}
}
core.info(`[KUBE-SCORE] Scanned file '${file}'`);
}
Expand Down
4 changes: 4 additions & 0 deletions src/kubescore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ async function processFilesWithKubeScore(files: string[], stream: fs.WriteStream
} else {
core.setFailed('[KUBE-SCORE] Scan failed...');
}

if (stream) {
stream.write(`\n\n*** End analysis for file '${file}' ***\n\n`);
}
}

core.info(`[KUBE-SCORE] Scanned file '${file}'`);
Expand Down

0 comments on commit 8d395d4

Please sign in to comment.