Skip to content

Commit 607d166

Browse files
committed
fix: pre-release script should update common features file in docs
1 parent f76cdc8 commit 607d166

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

scripts/pre-release.sh

+9
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,15 @@ function bumpVersion() {
8787
mv ${module_file}.tmp ${module_file}
8888
fi
8989
done
90+
91+
readonly commonFile="${ROOT_DIR}/docs/features/common_functional_options.md"
92+
if [[ "${DRY_RUN}" == "true" ]]; then
93+
echo "sed \"s/${NON_RELEASED_STRING}/${RELEASED_STRING}/g\" ${commonFile} > ${commonFile}.tmp"
94+
echo "mv ${commonFile}.tmp ${commonFile}"
95+
else
96+
sed "s/${NON_RELEASED_STRING}/${RELEASED_STRING}/g" ${commonFile} > ${commonFile}.tmp
97+
mv ${commonFile}.tmp ${commonFile}
98+
fi
9099
}
91100

92101
# This function reads the version.go file and extracts the current version.

0 commit comments

Comments
 (0)