From c5323242c042fca1d2a8f4a30f78344923746697 Mon Sep 17 00:00:00 2001 From: Amirhossein Alibakhshi Date: Tue, 6 May 2025 19:02:31 +0330 Subject: [PATCH] Update announcement.yml --- .github/workflows/announcement.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 }} - ```