From 6ec89831f4ffbc913687235de3151e3d81e55f7b Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Wed, 28 Jun 2023 00:20:05 +0300 Subject: [PATCH] only try helm template values.yaml if ci/*values.yaml does not exist --- .github/scripts/tc-lint.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/scripts/tc-lint.sh b/.github/scripts/tc-lint.sh index ae3f10fe281..104d361f996 100755 --- a/.github/scripts/tc-lint.sh +++ b/.github/scripts/tc-lint.sh @@ -147,8 +147,10 @@ function lint_chart(){ echo "👣 Helm Lint - [$chart_path]" helm_lint "$chart_path" - echo "👣 Helm Template - [$chart_path]" - helm_template "$chart_path" + if [[ ! $(ls $chart_path/ci/*values.yaml) ]]; then + echo "👣 Helm Template - [$chart_path]" + helm_template "$chart_path" + fi for values in $chart_path/ci/*values.yaml; do if [ -f "${values}" ]; then