Skip to content

Commit

Permalink
Fix announce script (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-dingemans authored May 12, 2023
1 parent 432f609 commit b81bb05
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .announce
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,11 @@ fi
# update version number in snapshot docs

echo "Updating version numbers in (snapshot) installation documentation"
# Use "sed -i '' ..." instead of "sed -i -e ..." as the latter creates a new file on OSX
sed -i '' "s/$PREVIOUS_VERSION/$VERSION/g" ${SNAPSHOT_DOCS_DIR}/docs/install/cli.md
sed -i '' "s/$PREVIOUS_VERSION/$VERSION/g" ${SNAPSHOT_DOCS_DIR}/docs/install/integrations.md
# On local machine (OSX) Use "sed -i '' ..." instead of "sed -i -e ..." as the latter creates a new file.
# On Github Action workflow the "sed -i -e ..." is required as otherwise it results in failure
# "can't read s/0.49.0/0.49.1/g: No such file or directory"
sed -i -e "s/$PREVIOUS_VERSION/$VERSION/g" ${SNAPSHOT_DOCS_DIR}/docs/install/cli.md
sed -i -e "s/$PREVIOUS_VERSION/$VERSION/g" ${SNAPSHOT_DOCS_DIR}/docs/install/integrations.md
git --no-pager diff ${DOCUMENTATION_DIR}

# ask for user confirmation before committing
Expand Down

0 comments on commit b81bb05

Please sign in to comment.