@@ -24,7 +24,7 @@ concurrency:
2424env :
2525 GA_VERSION : " main"
2626 GITHUB_USER : " datavisyn-bot"
27- WORKFLOW_BRANCH : " feat-automate-releases-releasenotes "
27+ WORKFLOW_BRANCH : " main "
2828 GITHUB_TOKEN : ${{ secrets.DATAVISYN_BOT_REPO_TOKEN }}
2929 CHARTMUSEUM_USER : ${{ secrets.DV_CHARTMUSEUM_USER }}
3030 CHARTMUSEUM_PASSWORD : ${{ secrets.DV_CHARTMUSEUM_PASSWORD }}
@@ -127,41 +127,31 @@ jobs:
127127 if : ${{ inputs.is_helm_chart == true }}
128128 run : |
129129 cd deploy/helm
130- echo "Current directory: $(pwd)"
131130 ls_result="$(ls)"
132- echo "List of directories in deploy/helm: $ls_result"
133131
134132 # update the version and appVersion fields in all Chart.yaml files
135133 for dir in $ls_result; do
136134 echo "Processing directory: $dir"
137-
138- # Check if the Chart.yaml file exists before running sed
139135 if [ -f "$dir/Chart.yaml" ]; then
140136 # Update the version and appVersion fields in the Chart.yaml
141137 sed -i "s/^version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yaml"
142138 sed -i "s/^appVersion:.*/appVersion: \"$RELEASE_VERSION\"/" "$dir/Chart.yaml"
143139 else
144- echo "Chart.yaml file not found in $dir. Skipping."
145140 continue
146141 fi
147142 done
148143
149144 # update the dependencies versions based on the charts available in deploy/helm
150145 for dir in $ls_result; do
151- echo "Processing dependencies in $dir"
152-
153146 if [ -f "$dir/Chart.yaml" ]; then
154147 for dep_dir in $ls_result; do
155148 if grep -q "name: $dep_dir" "$dir/Chart.yaml"; then
156- echo "Found dependency on $dep_dir in $dir. Updating version to $RELEASE_VERSION"
157149 sed -i "/name: $dep_dir/!b;n;s/version:.*/version: $RELEASE_VERSION/" "$dir/Chart.yaml"
158150 fi
159151 done
160152 fi
161153 done
162154
163- echo "Completed version updates."
164-
165155 git add .
166156 - name : update imageTag and repository_tag in values files
167157 if : ${{ inputs.is_helm_chart == true }}
0 commit comments