We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fce776f commit f794fb4Copy full SHA for f794fb4
dev-bin/release.sh
@@ -5,7 +5,7 @@ set -eu -o pipefail
5
changelog=$(cat CHANGELOG.md)
6
7
regex='
8
-([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
+([0-9]+\.[0-9]+\.[0-9]+(-[^ ]+)?) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
9
-*
10
11
((.|
@@ -18,8 +18,8 @@ if [[ ! $changelog =~ $regex ]]; then
18
fi
19
20
version="${BASH_REMATCH[1]}"
21
-date="${BASH_REMATCH[2]}"
22
-notes="$(echo "${BASH_REMATCH[3]}" | sed -n -E '/^[0-9]+\.[0-9]+\.[0-9]+/,$!p')"
+date="${BASH_REMATCH[3]}"
+notes="$(echo "${BASH_REMATCH[4]}" | sed -n -E '/^[0-9]+\.[0-9]+\.[0-9]+/,$!p')"
23
24
if [[ "$date" != $(date +"%Y-%m-%d") ]]; then
25
echo "$date is not today!"
0 commit comments