Do not warn users if a workflow cannot be read

This will still send a LintFailed message status report.
This commit is contained in:
Simon Engledew 2021-01-21 15:51:42 +00:00
parent 484a9ad67e
commit 4547749a2f
No known key found for this signature in database
GPG key ID: 84302E7B02FE8BCE
3 changed files with 1 additions and 3 deletions

1
lib/actions-util.js generated
View file

@ -294,7 +294,6 @@ async function getWorkflow() {
return yaml.safeLoad(fs.readFileSync(absolutePath, "utf-8"));
}
catch (e) {
core.warning(`Could not read workflow: ${e.toString()}`);
return undefined;
}
}

File diff suppressed because one or more lines are too long

View file

@ -356,7 +356,6 @@ export async function getWorkflow(): Promise<Workflow | undefined> {
try {
return yaml.safeLoad(fs.readFileSync(absolutePath, "utf-8"));
} catch (e) {
core.warning(`Could not read workflow: ${e.toString()}`);
return undefined;
}
}