Skip to content

Commit

Permalink
fix: pre-release script should update common features file in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdelapenya committed Sep 29, 2023
1 parent f76cdc8 commit 607d166
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/pre-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 607d166

Please sign in to comment.