Skip to content

Commit 1cacf6e

Browse files
authored
Merge pull request #7 from code-with-amirhossein/amir78729-patch-7
Update announcement.yml
2 parents 075aa05 + c532324 commit 1cacf6e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/announcement.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
run: |
1717
echo "${{ github.event.pull_request.body }}" > pr_body.md
1818
19-
# Extract lines from "# Releases" onward
20-
awk '/^# Releases/ {found=1} found' pr_body.md > release_notes.txt
19+
# Extract lines AFTER "# Releases"
20+
awk '/^# Releases/ {found=1; next} found' pr_body.md > release_notes.txt
2121
2222
# Escape characters for Telegram MarkdownV2
2323
sed -e 's/\([_*\[\]()~`>#+\-=|{}.!]\)/\\\1/g' release_notes.txt > sanitized_notes.txt
@@ -42,5 +42,3 @@ jobs:
4242
4343
📦 *Release Notes:*
4444
```
45-
${{ env.RELEASE_NOTES }}
46-
```

0 commit comments

Comments
 (0)