Do not show lint failed in the UX if it happens

This commit is contained in:
Simon Engledew 2020-12-01 17:22:54 +00:00
parent b1be00db57
commit 56b1ead679
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 3 additions and 3 deletions

2
lib/init-action.js generated
View file

@ -56,7 +56,7 @@ async function run() {
try {
actionsUtil.prepareLocalRunEnvironment();
const workflowErrors = await actionsUtil.getWorkflowErrors();
if (workflowErrors.length > 0) {
if (workflowErrors.filter(o => o.code !== 'LintFailed').length > 0) {
core.warning(actionsUtil.formatWorkflowErrors(workflowErrors));
}
if (!(await actionsUtil.sendStatusReport(await actionsUtil.createStatusReportBase("init", "starting", startedAt, actionsUtil.formatWorkflowCause(workflowErrors))))) {