From 3eb1d28fbe2ad1701e866edf28b12f6f917e7121 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 25 May 2023 20:22:23 +0300 Subject: [PATCH] fix condition. It's train/chart Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> --- .github/scripts/fetch_helm_deps.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/scripts/fetch_helm_deps.sh b/.github/scripts/fetch_helm_deps.sh index 21cad5591ff..5bae16f642d 100755 --- a/.github/scripts/fetch_helm_deps.sh +++ b/.github/scripts/fetch_helm_deps.sh @@ -101,7 +101,7 @@ for idx in $(eval echo "{0..$length}"); do if [ ! $? ]; then echo "❌ wget encountered an error..." - if [[ "$train_chart" == "incubator" ]]; then + if [[ "$train_chart" == "incubator/*" ]]; then helm dependency build "$charts_path/$train_chart/Chart.yaml" || \ helm dependency update "$charts_path/$train_chart/Chart.yaml"|| exit 1 else @@ -112,17 +112,17 @@ for idx in $(eval echo "{0..$length}"); do if [ -f "$cache_path/$repo_dir/$name-$version.tgz" ]; then echo "✅ Dependency Downloaded!" - if [[ "$train_chart" != "incubator" ]]; then + if [[ "$train_chart" != "incubator/*" ]]; then echo "Validating dependency signature..." helm verify $cache_path/$repo_dir/$name-$version.tgz --keyring $gpg_dir/pubring.gpg || \ helm verify $cache_path/$repo_dir/$name-$version.tgz --keyring $gpg_dir/pubring.gpg || exit 1 else - echo "Train $train_chart is Incubator skipping dependency signature verification..." + echo "Skipping dependency signature verification for $train_chart..." fi else echo "❌ Failed to download dependency" # Try helm dependency build/update or otherwise fail fast if a dep fails to download... - if [[ "$train_chart" == "incubator" ]]; then + if [[ "$train_chart" == "incubator/*" ]]; then helm dependency build "$charts_path/$train_chart/Chart.yaml" || \ helm dependency update "$charts_path/$train_chart/Chart.yaml"|| exit 1 else