Skip to content

Commit fef21cd

Browse files
authored
Properly escape csm version (#170)
1 parent eae4f25 commit fef21cd

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/csi-sidecars-update.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ jobs:
9090
}
9191
9292
update_installation_wizard_sidecars() {
93-
csm_version=$csm
93+
# Get the latest CSM version
94+
echo "Latest CSM Version is $csm"
95+
96+
# Sanitize the CSM version
97+
csm_version=$(echo $csm | tr -d 'v' | tr -d '\r')
9498
9599
# The installation wizard templates should have the latest version of the CSM.
96-
wizard_files=$(find content/docs/getting-started/installation/installationwizard/src/templates/ -name "*$version*")
100+
wizard_files=$(find content/docs/getting-started/installation/installationwizard/src/templates/ -name "*$csm_version*")
97101
98102
if [ -z "$wizard_files" ]; then
99103
echo "No Installation Wizard content for latest CSM found. Skipping."

0 commit comments

Comments
 (0)