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
|
# Extract the changelog section for this version
|
||||||
awk -v version="$VERSION" '
|
awk -v version="$VERSION" '
|
||||||
BEGIN { print=0 }
|
BEGIN { print_section=0; }
|
||||||
/^## \['version'\]/ { print=1; next }
|
$0 ~ "^## \\[" version "\\]" { print_section=1; next }
|
||||||
/^## \[/ && print { print=0; next }
|
$0 ~ "^## \\[" && print_section { print_section=0; next }
|
||||||
print { print $0 }
|
print_section
|
||||||
' CHANGELOG.md > release_notes.md
|
' CHANGELOG.md > release_notes.md
|
||||||
|
|
||||||
echo "RELEASE_NOTES_FILE=release_notes.md" >> $GITHUB_OUTPUT
|
echo "RELEASE_NOTES_FILE=release_notes.md" >> $GITHUB_OUTPUT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user