Skip to content

Commit

Permalink
Only fail run once on runtime errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Oct 9, 2024
1 parent f49b46c commit d4767e6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function run(actionInput) {
// These aren't linting errors, but ones that will come
// about from missing or bad configuration files, etc.
if (vale_code === 2) {
core.setFailed(`Vale encountered a fatal error with status code: ${vale_code}`);
return 2; // Exit the function early
}
const should_fail = core.getInput('fail_on_error');
Expand Down
1 change: 0 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export async function run(actionInput: input.Input): Promise<void> {
// These aren't linting errors, but ones that will come
// about from missing or bad configuration files, etc.
if (vale_code === 2) {
core.setFailed(`Vale encountered a fatal error with status code: ${vale_code}`);
return 2; // Exit the function early
}

Expand Down

0 comments on commit d4767e6

Please sign in to comment.