File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff 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
4239
4340 📦 *Release Notes:*
4441 ```
42+ ${{ env.RELEASE_NOTES }}
43+ ```
You can’t perform that action at this time.
0 commit comments