fix: match linked changelog headings when extracting release notes
All checks were successful
Push Validation / validate (push) Successful in 1m38s
All checks were successful
Push Validation / validate (push) Successful in 1m38s
This commit is contained in:
@@ -74,9 +74,9 @@ runs:
|
||||
set -euo pipefail
|
||||
|
||||
release_notes="$(awk -v version="$RELEASE_VERSION" '
|
||||
$0 ~ "^## \\[" version "\\] - " {capture=1}
|
||||
$0 ~ "^## \\[" version "\\]" {capture=1}
|
||||
capture {
|
||||
if ($0 ~ "^## \\[" && $0 !~ "^## \\[" version "\\] - ") exit
|
||||
if ($0 ~ "^## \\[" && $0 !~ "^## \\[" version "\\]") exit
|
||||
print
|
||||
}
|
||||
' "$CHANGELOG")"
|
||||
|
||||
Reference in New Issue
Block a user