From 89396469b2f1b01f1e1709c0bf49f75e097966d0 Mon Sep 17 00:00:00 2001 From: Teal Bauer Date: Wed, 2 Apr 2025 20:41:31 +0200 Subject: [PATCH] Fix release version tag --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0bae6ef..4856cdc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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