mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 03:03:59 +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 '/<!-- BEGIN STRIP_FOR_RELEASE -->/,/<!-- END STRIP_FOR_RELEASE -->/d' \
|
||||||
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
|
-e "s|(releases.k8s.io)/[^/]+|\1/${NEW_VERSION}|" \
|
||||||
"${doc}"
|
"${doc}"
|
||||||
|
is_versioned_tag='<!-- TAG IS_VERSIONED -->'
|
||||||
|
if ! grep -q "${is_versioned_tag}" "${doc}"; then
|
||||||
|
echo "${is_versioned_tag}" >> "${doc}"
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
# Update API descriptions to match this version.
|
# Update API descriptions to match this version.
|
||||||
|
Loading…
Reference in New Issue
Block a user