This is an automated email from the ASF dual-hosted git repository.

RocMarshal pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git


The following commit(s) were added to refs/heads/master by this push:
     new 4828c1869f8 [FLINK-39894][tools/releasing] Change version in generated 
REST API specifications yml files when creating a new release branch (#28365)
4828c1869f8 is described below

commit 4828c1869f815d2b9cef2e8617b47f5fad01edeb
Author: Yuepeng Pan <[email protected]>
AuthorDate: Wed Jun 10 01:10:06 2026 +0800

    [FLINK-39894][tools/releasing] Change version in generated REST API 
specifications yml files when creating a new release branch (#28365)
---
 tools/releasing/create_release_branch.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tools/releasing/create_release_branch.sh 
b/tools/releasing/create_release_branch.sh
index bcdcc2a1fdc..ff4ac9bfbcb 100755
--- a/tools/releasing/create_release_branch.sh
+++ b/tools/releasing/create_release_branch.sh
@@ -67,6 +67,11 @@ VERSION_TITLE=$(echo $NEW_VERSION | sed 's/\.[^.]*$//')
 perl -pi -e "s#^  VersionTitle = .*#  VersionTitle = \"${VERSION_TITLE}\"#" 
config.toml
 cd ..
 
+#change version in generated REST API specifications yml files
+cd docs/static/generated
+perl -pi -e "s#^(  version: 
v\d+/)${VERSION_TITLE}-SNAPSHOT#\${1}${NEW_VERSION}#" *.yml
+cd ../../..
+
 #change version of pyflink
 cd flink-python/pyflink
 perl -pi -e "s#^__version__ = \".*\"#__version__ = \"${NEW_VERSION}\"#" 
version.py

Reply via email to