From 56d7d5d8d788021d092712881912510c1dc39766 Mon Sep 17 00:00:00 2001 From: Lianhao Lu Date: Tue, 10 Sep 2024 09:23:05 +0800 Subject: [PATCH] Fix CI bug #417 (#418) Skip nv-values.yaml and hpa-values.yaml since our current CI infra doesn't support testing them. Signed-off-by: Lianhao Lu --- .github/workflows/manual-helm-cd-workflow.yaml | 4 ++-- .github/workflows/pr-chart-e2e.yaml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/manual-helm-cd-workflow.yaml b/.github/workflows/manual-helm-cd-workflow.yaml index a940cde8..dcd1a382 100644 --- a/.github/workflows/manual-helm-cd-workflow.yaml +++ b/.github/workflows/manual-helm-cd-workflow.yaml @@ -45,7 +45,7 @@ jobs: find "$CHARTS_DIR" -mindepth 1 -maxdepth 1 -type d ! -name "common" -exec basename {} \; | while read -r subfolder; do for file in "$CHARTS_DIR/$subfolder"/*values.yaml; do if [ -f "$file" ]; then - if [ "$file" == *"nv-values.yaml" ] || [ "$file" == *"hpa-values.yaml" ]; then + if [[ "$file" == *"nv-values.yaml" ]] || [[ "$file" == *"hpa-values.yaml" ]]; then continue fi filename=$(basename "$file" .yaml) @@ -60,7 +60,7 @@ jobs: find "$CHARTS_DIR/common" -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | while read -r subfolder; do for file in "$CHARTS_DIR/common/$subfolder"/*values.yaml; do if [ -f "$file" ]; then - if [ "$file" == *"nv-values.yaml" ] || [ "$file" == *"hpa-values.yaml" ]; then + if [[ "$file" == *"nv-values.yaml" ]] || [[ "$file" == *"hpa-values.yaml" ]]; then continue fi filename=$(basename "$file" .yaml) diff --git a/.github/workflows/pr-chart-e2e.yaml b/.github/workflows/pr-chart-e2e.yaml index 84decf14..98604d83 100644 --- a/.github/workflows/pr-chart-e2e.yaml +++ b/.github/workflows/pr-chart-e2e.yaml @@ -49,7 +49,7 @@ jobs: for chart in ${e2e_charts}; do for file in "$CHARTS_DIR/$chart"/*values.yaml; do if [ -f "$file" ]; then - if [ "$file" == *"nv-values.yaml" ] || [ "$file" == *"hpa-values.yaml" ]; then + if [[ "$file" == *"nv-values.yaml" ]] || [[ "$file" == *"hpa-values.yaml" ]]; then continue fi filename=$(basename "$file" .yaml) @@ -64,7 +64,7 @@ jobs: for chart in ${common_charts}; do for file in "$CHARTS_DIR/common/$chart"/*values.yaml; do if [ -f "$file" ]; then - if [ "$file" == *"nv-values.yaml" ] || [ "$file" == *"hpa-values.yaml" ]; then + if [[ "$file" == *"nv-values.yaml" ]] || [[ "$file" == *"hpa-values.yaml" ]]; then continue fi filename=$(basename "$file" .yaml)