File tree Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Expand file tree Collapse file tree 1 file changed +5
-23
lines changed Original file line number Diff line number Diff line change @@ -11,33 +11,15 @@ jobs:
1111 runs-on : ubuntu-latest
1212
1313 steps :
14- - name : Extract release notes
15- id : extract
16- run : |
17- echo "${{ github.event.pull_request.body }}" > pr_body.md
18-
19- # Extract lines AFTER "# Releases" line
20- awk '/^# Releases/ {found=1; next} found' pr_body.md > release_notes.txt
21-
22- # Save as-is to environment variable (no escaping needed inside ``` block)
23- {
24- echo "RELEASE_NOTES<<EOF"
25- cat release_notes.txt
26- echo "EOF"
27- } >> "$GITHUB_ENV"
28-
2914 - name : Send Telegram Message
3015 uses : appleboy/telegram-action@master
3116 with :
3217 to : ${{ secrets.TELEGRAM_TO }}
3318 token : ${{ secrets.TELEGRAM_TOKEN }}
3419 format : MarkdownV2
3520 message : |
36- ✅ *Release Merged to Main*
37- 🔗 [PR \#${{ github.event.pull_request.number }}](${{ github.event.pull_request.html_url }})
38- 👤 Author: [${{ github.event.pull_request.user.login }}](https://github.com/${{ github.event.pull_request.user.login }})
39-
40- 📦 *Release Notes:*
41- ```
42- ${{ env.RELEASE_NOTES }}
43- ```
21+ 🚀 New Release for *[Design System](https://github.com/${{ github.repository }})*
22+
23+ 🔗 [View PR \#${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }}](${{ github.event.pull_request.html_url }})
24+ 📦 [Releases](https://github.com/${{ github.repository }}/releases)
25+
You can’t perform that action at this time.
0 commit comments