Skip to content

Commit eaf06b2

Browse files
authored
Update announcement.yml
1 parent 73b948d commit eaf06b2

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

.github/workflows/announcement.yml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff 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+

0 commit comments

Comments
 (0)