Skip to content

Commit

Permalink
add README updating back to update-versions.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
cwaldren-ld committed Jan 9, 2024
1 parent 5c6b9be commit fa15a10
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"extra-files": [
"launchdarkly-server-sdk.c",
".github/actions/ci/action.yml",
"README.md"
"README.md",
"scripts/update-versions.sh"
]
}
}
Expand Down
7 changes: 7 additions & 0 deletions scripts/update-versions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,13 @@ for file in "$input_rockspec"-*.rockspec; do

rm -f "$new_file_name.bak"

# Update README.md to replace $file with the new filename, which will result in the codesample having the new
# version number.
sed -i.bak "s/$file/$new_file_name/" README.md
echo "Updated README.md code example"
rm -f README.md.bak


if [ "$(git status --porcelain | wc -l)" -gt 0 ]; then
if [ -n "$git_username" ]; then
git config user.name "$git_username"
Expand Down

0 comments on commit fa15a10

Please sign in to comment.