From 86d18a35e57125a0fa9744216ff71d00aec77ccd Mon Sep 17 00:00:00 2001 From: Keith Domenicucci Date: Fri, 25 Oct 2024 12:20:30 -0600 Subject: [PATCH] support retry on timeout and retry on exit code together --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aa5642e..181bd96 100644 --- a/src/index.ts +++ b/src/index.ts @@ -143,7 +143,7 @@ async function runAction(inputs: Inputs) { } else if (!done && inputs.retry_on === 'error') { // error: timeout throw error; - } else if (inputs.retry_on_exit_code && inputs.retry_on_exit_code !== exit) { + } else if (done && inputs.retry_on_exit_code && inputs.retry_on_exit_code !== exit) { throw error; } else if (exit > 0 && inputs.retry_on === 'timeout') { // error: error