Make the bump-version.sh also update version in documentation sample outputs (#6608)

This commit is contained in:
Armel Soro
2023-02-21 17:17:56 +01:00
committed by GitHub
parent 709cf80aa9
commit 34c2728bdc

View File

@@ -34,6 +34,15 @@ echo "* Bumping version in Dockerfile.rhel"
sed -i "s/\(version=\).*/\1${NEW_VERSION}/g" Dockerfile.rhel
check_version Dockerfile.rhel
echo "* Bumping version in documentation sample outputs"
# globstar: allows the '**' to recursively try to find file and directories
# nullglob: filename patterns that don't match any filenames are expanded to nothing rather than remaining unexpanded.
shopt -s globstar nullglob
for file in ./docs/website/docs/**/docs-mdx/**/*.mdx; do
sed -i 's/\(odo version: v\).*/\1'"${NEW_VERSION}"'/g' "$file"
done
echo
echo "****************************************************************************************"
echo "* Don't forget to update homebrew package at https://github.com/kadel/homebrew-odo ! *"
echo "****************************************************************************************"