From bc4042693c07144d3b037717468b703ef8285182 Mon Sep 17 00:00:00 2001 From: Saptarshi Sarkar Date: Sat, 7 Dec 2024 11:43:51 +0530 Subject: [PATCH] fix: Added default value for max_retries Signed-off-by: Saptarshi Sarkar --- action.yaml | 2 +- entrypoint.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yaml b/action.yaml index 6882aab..c9a3f87 100644 --- a/action.yaml +++ b/action.yaml @@ -30,7 +30,7 @@ inputs: max_retries: description: "Max retries on timeout error" required: false - default: 3 + default: 0 outputs: patched-image: description: 'Image reference of patched image' diff --git a/entrypoint.sh b/entrypoint.sh index 0d93801..5c71394 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,7 +9,7 @@ timeout=$4 connection_format=$5 format=$6 output_file=$7 -max_retries=$8 +max_retries=${8:-0} # parse image into image name image_no_tag=$(echo "$image" | cut -d':' -f1)