From d4767e68529b2cbf4fccaa2763016bf223a101eb Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Tue, 8 Oct 2024 20:25:43 -0700 Subject: [PATCH] Only fail run once on runtime errors --- lib/main.js | 1 - src/main.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/main.js b/lib/main.js index 3a67af43..2988818f 100644 --- a/lib/main.js +++ b/lib/main.js @@ -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'); diff --git a/src/main.ts b/src/main.ts index adacc40d..7e23589a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -42,7 +42,6 @@ export async function run(actionInput: input.Input): Promise { // 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 }