This commit is contained in:
parent
9aa93c4933
commit
89396469b2
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@ -86,10 +86,10 @@ jobs:
|
||||
|
||||
# Extract the changelog section for this version
|
||||
awk -v version="$VERSION" '
|
||||
BEGIN { print=0 }
|
||||
/^## \['version'\]/ { print=1; next }
|
||||
/^## \[/ && print { print=0; next }
|
||||
print { print $0 }
|
||||
BEGIN { print_section=0; }
|
||||
$0 ~ "^## \\[" version "\\]" { print_section=1; next }
|
||||
$0 ~ "^## \\[" && print_section { print_section=0; next }
|
||||
print_section
|
||||
' CHANGELOG.md > release_notes.md
|
||||
|
||||
echo "RELEASE_NOTES_FILE=release_notes.md" >> $GITHUB_OUTPUT
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user