Skip to content

Commit

Permalink
build: improve prepare-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
aerovulpe committed Aug 15, 2024
1 parent cbb42fd commit ad8b2a6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions prepare-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ EXTENSION_FILE="extension.yaml"
CHANGELOG_FILE="CHANGELOG.md"

echo "Preparing extension for version $NEXT_RELEASE_VERSION"
sed -i.bak "s/^version:.*/version: $NEXT_RELEASE_VERSION/" $EXTENSION_FILE
sed -i "s/^version:.*/version: $NEXT_RELEASE_VERSION/" $EXTENSION_FILE
echo "Updated version in $EXTENSION_FILE to $NEXT_RELEASE_VERSION"

echo "Preparing changelog for version $NEXT_RELEASE_VERSION"
sed -i.bak 's/^# /## Version /' $CHANGELOG_FILE
echo "Updated headings in $CHANGELOG_FILE"
sed -i "/^# $NEXT_RELEASE_VERSION/s/^# /## Version /" $CHANGELOG_FILE
echo "Updated heading in $CHANGELOG_FILE"

0 comments on commit ad8b2a6

Please sign in to comment.