@@ -131,17 +131,17 @@ jobs:
131131 ls_result="$(ls)"
132132 echo "List of directories in deploy/helm: $ls_result"
133133
134- # update the version and appVersion fields in all Chart.yml files
134+ # update the version and appVersion fields in all Chart.yaml files
135135 for dir in $ls_result; do
136136 echo "Processing directory: $dir"
137137
138- # Check if the Chart.yml file exists before running sed
139- if [ -f "$dir/Chart.yml " ]; then
140- # Update the version and appVersion fields in the Chart.yml
141- sed -i "s/^version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yml "
142- sed -i "s/^appVersion:.*/appVersion: \"$RELEASE_VERSION\"/" "$dir/Chart.yml "
138+ # Check if the Chart.yaml file exists before running sed
139+ if [ -f "$dir/Chart.yaml " ]; then
140+ # Update the version and appVersion fields in the Chart.yaml
141+ sed -i "s/^version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yaml "
142+ sed -i "s/^appVersion:.*/appVersion: \"$RELEASE_VERSION\"/" "$dir/Chart.yaml "
143143 else
144- echo "Chart.yml file not found in $dir. Skipping."
144+ echo "Chart.yaml file not found in $dir. Skipping."
145145 continue
146146 fi
147147 done
@@ -150,11 +150,11 @@ jobs:
150150 for dir in $ls_result; do
151151 echo "Processing dependencies in $dir"
152152
153- if [ -f "$dir/Chart.yml " ]; then
153+ if [ -f "$dir/Chart.yaml " ]; then
154154 for dep_dir in $ls_result; do
155- if grep -q "name: $dep_dir" "$dir/Chart.yml "; then
155+ if grep -q "name: $dep_dir" "$dir/Chart.yaml "; then
156156 echo "Found dependency on $dep_dir in $dir. Updating version to $RELEASE_VERSION"
157- sed -i "/name: $dep_dir/!b;n;s/version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yml "
157+ sed -i "/name: $dep_dir/!b;n;s/version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yaml "
158158 fi
159159 done
160160 fi
0 commit comments