From 607d1669d5799c2053e69deaf54ddbbdba1a1397 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20de=20la=20Pe=C3=B1a?= Date: Fri, 29 Sep 2023 13:20:56 +0200 Subject: [PATCH] fix: pre-release script should update common features file in docs --- scripts/pre-release.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/pre-release.sh b/scripts/pre-release.sh index 0f3490bfec..8f0cd580b0 100755 --- a/scripts/pre-release.sh +++ b/scripts/pre-release.sh @@ -87,6 +87,15 @@ function bumpVersion() { mv ${module_file}.tmp ${module_file} fi done + + readonly commonFile="${ROOT_DIR}/docs/features/common_functional_options.md" + if [[ "${DRY_RUN}" == "true" ]]; then + echo "sed \"s/${NON_RELEASED_STRING}/${RELEASED_STRING}/g\" ${commonFile} > ${commonFile}.tmp" + echo "mv ${commonFile}.tmp ${commonFile}" + else + sed "s/${NON_RELEASED_STRING}/${RELEASED_STRING}/g" ${commonFile} > ${commonFile}.tmp + mv ${commonFile}.tmp ${commonFile} + fi } # This function reads the version.go file and extracts the current version.