Just convert the pattern into a RegExp...

This commit is contained in:
Simon Engledew 2020-12-01 20:56:07 +00:00
parent 4d862616ce
commit 698e2a5487
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
9 changed files with 62 additions and 107 deletions

View file

@ -101,7 +101,9 @@ async function run() {
// we do not want to worry users if linting is failing
// but we do want to send a status report containing this error code
// below
const userWorkflowErrors = workflowErrors.filter(o => o.code !== 'LintFailed');
const userWorkflowErrors = workflowErrors.filter(
(o) => o.code !== "LintFailed"
);
if (userWorkflowErrors.length > 0) {
core.warning(actionsUtil.formatWorkflowErrors(userWorkflowErrors));