diff --git a/.github/workflows/announcement.yml b/.github/workflows/announcement.yml index 067cd7e..159e7fc 100644 --- a/.github/workflows/announcement.yml +++ b/.github/workflows/announcement.yml @@ -16,8 +16,8 @@ jobs: run: | echo "${{ github.event.pull_request.body }}" > pr_body.md - # Extract lines from "# Releases" onward - awk '/^# Releases/ {found=1} found' pr_body.md > release_notes.txt + # Extract lines AFTER "# Releases" + awk '/^# Releases/ {found=1; next} found' pr_body.md > release_notes.txt # Escape characters for Telegram MarkdownV2 sed -e 's/\([_*\[\]()~`>#+\-=|{}.!]\)/\\\1/g' release_notes.txt > sanitized_notes.txt @@ -42,5 +42,3 @@ jobs: 📦 *Release Notes:* ``` - ${{ env.RELEASE_NOTES }} - ```