Skip to content

Commit dd3fcf2

Browse files
authored
[FLINK-39894][tools/releasing] Change version in generated REST API specifications yml files when creating a new release branch (#28368)
(cherry picked from commit 4828c18)
1 parent 402a6a7 commit dd3fcf2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/releasing/create_release_branch.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ VERSION_TITLE=$(echo $NEW_VERSION | sed 's/\.[^.]*$//')
6767
perl -pi -e "s#^ VersionTitle = .*# VersionTitle = \"${VERSION_TITLE}\"#" config.toml
6868
cd ..
6969

70+
#change version in generated REST API specifications yml files
71+
cd docs/static/generated
72+
perl -pi -e "s#^( version: v\d+/)${VERSION_TITLE}-SNAPSHOT#\${1}${NEW_VERSION}#" *.yml
73+
cd ../../..
74+
7075
#change version of pyflink
7176
cd flink-python/pyflink
7277
perl -pi -e "s#^__version__ = \".*\"#__version__ = \"${NEW_VERSION}\"#" version.py

0 commit comments

Comments
 (0)