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 2eb34d1 commit 165f3e6Copy full SHA for 165f3e6
dev-bin/release.sh
@@ -5,7 +5,7 @@ set -eu -o pipefail
5
changelog=$(cat CHANGELOG.md)
6
7
regex='
8
-## v([0-9]+\.[0-9]+\.[0-9]+) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
+## v([0-9]+\.[0-9]+\.[0-9]+(.[a-z0-9]+)?) \(([0-9]{4}-[0-9]{2}-[0-9]{2})\)
9
10
((.|
11
)*)
@@ -17,8 +17,8 @@ if [[ ! $changelog =~ $regex ]]; then
17
fi
18
19
version="${BASH_REMATCH[1]}"
20
-date="${BASH_REMATCH[2]}"
21
-notes="$(echo "${BASH_REMATCH[3]}" | sed -n -E '/^## v[0-9]+\.[0-9]+\.[0-9]+/,$!p')"
+date="${BASH_REMATCH[3]}"
+notes="$(echo "${BASH_REMATCH[4]}" | sed -n -E '/^## v[0-9]+\.[0-9]+\.[0-9]+/,$!p')"
22
23
echo "$notes"
24
if [[ "$date" != "$(date +"%Y-%m-%d")" ]]; then
0 commit comments