Skip to content

Commit 73b948d

Browse files
authored
Merge pull request #8 from code-with-amirhossein/amir78729-patch-8
Update announcement.yml
2 parents 1cacf6e + bb1cf6c commit 73b948d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

.github/workflows/announcement.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,18 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- name: Extract and sanitize release notes
14+
- name: Extract release notes
1515
id: extract
1616
run: |
1717
echo "${{ github.event.pull_request.body }}" > pr_body.md
1818
19-
# Extract lines AFTER "# Releases"
19+
# Extract lines AFTER "# Releases" line
2020
awk '/^# Releases/ {found=1; next} found' pr_body.md > release_notes.txt
2121
22-
# Escape characters for Telegram MarkdownV2
23-
sed -e 's/\([_*\[\]()~`>#+\-=|{}.!]\)/\\\1/g' release_notes.txt > sanitized_notes.txt
24-
25-
# Save sanitized text to env
22+
# Save as-is to environment variable (no escaping needed inside ``` block)
2623
{
2724
echo "RELEASE_NOTES<<EOF"
28-
cat sanitized_notes.txt
25+
cat release_notes.txt
2926
echo "EOF"
3027
} >> "$GITHUB_ENV"
3128
@@ -42,3 +39,5 @@ jobs:
4239
4340
📦 *Release Notes:*
4441
```
42+
${{ env.RELEASE_NOTES }}
43+
```

0 commit comments

Comments
 (0)