diff --git a/build/mark-new-version.sh b/build/mark-new-version.sh index 9cb45ca5bfc..32d57f55648 100755 --- a/build/mark-new-version.sh +++ b/build/mark-new-version.sh @@ -102,6 +102,10 @@ for doc in "${mdfiles[@]}"; do -e '//,//d' \ -e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \ "${doc}" + is_versioned_tag='' + if ! grep -q "${is_versioned_tag}" "${doc}"; then + echo "${is_versioned_tag}" >> "${doc}" + fi done # Update API descriptions to match this version.