From 944029509d9f97e3e09ce35fe1c249bc877bfd93 Mon Sep 17 00:00:00 2001 From: "jose.vazquez" Date: Thu, 1 Aug 2024 11:16:16 +0200 Subject: [PATCH 1/2] Fix Helm Chart check retries --- .github/actions/releaser/cr.sh | 47 ++++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 16 deletions(-) diff --git a/.github/actions/releaser/cr.sh b/.github/actions/releaser/cr.sh index 4afdc232..51dbd111 100755 --- a/.github/actions/releaser/cr.sh +++ b/.github/actions/releaser/cr.sh @@ -9,6 +9,7 @@ set -o nounset set -o pipefail mark_latest=${MARK_LATEST:-true} +skip_execution=${SKIP_EXECUTION:-false} main() { local version=${VERSION:-v1.2.1} @@ -76,8 +77,6 @@ release_charts_inside_folders() { check_charts_released() { local folders=("$@") local unreleased_charts=() - local retries=5 - local delay=5 prepare_helm_repo @@ -92,18 +91,7 @@ check_charts_released() { chart_version=$(read_chart_version "${charts_dir}/${folder}") echo "Checking if \"$charts_dir/$folder\" has been released to the repo" - local released=false - for ((i=0; i Date: Thu, 1 Aug 2024 14:09:48 +0200 Subject: [PATCH 2/2] Fix arg passing --- .github/actions/releaser/cr.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/releaser/cr.sh b/.github/actions/releaser/cr.sh index 51dbd111..4ef5bc27 100755 --- a/.github/actions/releaser/cr.sh +++ b/.github/actions/releaser/cr.sh @@ -91,7 +91,7 @@ check_charts_released() { chart_version=$(read_chart_version "${charts_dir}/${folder}") echo "Checking if \"$charts_dir/$folder\" has been released to the repo" - if ! check_chart_version_released; then + if ! check_chart_version_released "${chart_name}" "${chart_version}"; then unreleased_charts+=("$chart_name") fi done