mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Add an 'is versioned' tag to docs when releasing
This commit is contained in:
parent
981f4550e8
commit
594bcf3c9d
@ -102,6 +102,10 @@ for doc in "${mdfiles[@]}"; do
|
||||
-e '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
|
||||
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
|
||||
"${doc}"
|
||||
is_versioned_tag='<!-- TAG IS_VERSIONED -->'
|
||||
if ! grep -q "${is_versioned_tag}" "${doc}"; then
|
||||
echo "${is_versioned_tag}" >> "${doc}"
|
||||
fi
|
||||
done
|
||||
|
||||
# Update API descriptions to match this version.
|
||||
|
Loading…
Reference in New Issue
Block a user