Skip to content

Commit 9ccf4ec

Browse files
Add post-release script to add an empty unreleased entry in the changelog (#1582)
1 parent 629e2d9 commit 9ccf4ec

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scripts/post-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
set -eux
3+
4+
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
5+
cd $SCRIPT_DIR/..
6+
7+
OLD_VERSION="${1}"
8+
NEW_VERSION="${2}"
9+
10+
# Add a new unreleased entry in the changelog
11+
sed -i "" 's/# Changelog/# Changelog\n\n## Unreleased/' CHANGELOG.md

0 commit comments

Comments
 (0)