File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8282 LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || true)
8383 if [ -z "$LATEST_TAG" ]; then
8484 echo "No existing tags found. Skipping semver vs tag check."
85- CHANGELOG_HEAD=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+)\].*/\1/p' CHANGELOG.md | head -1)
85+ CHANGELOG_HEAD=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z][0-9A-Za-z.-]*)? )\].*/\1/p' CHANGELOG.md | head -1)
8686 if [ -z "$CHANGELOG_HEAD" ]; then
8787 echo "::error::Could not find a ## [vX.Y.Z] entry at the top of CHANGELOG.md."
8888 exit 1
@@ -105,7 +105,7 @@ jobs:
105105 exit 1
106106 fi
107107
108- CHANGELOG_HEAD=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+)\].*/\1/p' CHANGELOG.md | head -1)
108+ CHANGELOG_HEAD=$(sed -nE 's/^## \[v?([0-9]+\.[0-9]+\.[0-9]+(-[0-9A-Za-z][0-9A-Za-z.-]*)? )\].*/\1/p' CHANGELOG.md | head -1)
109109 if [ -z "$CHANGELOG_HEAD" ]; then
110110 echo "::error::Could not find a ## [vX.Y.Z] entry at the top of CHANGELOG.md."
111111 exit 1
You can’t perform that action at this time.
0 commit comments