Skip to content

Commit c5a2101

Browse files
authored
Update deploy.yml
1 parent 63ceac6 commit c5a2101

File tree

1 file changed

+23
-21
lines changed

1 file changed

+23
-21
lines changed

.github/workflows/deploy.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,28 +30,7 @@ jobs:
3030
with:
3131
fetch-depth: 0
3232

33-
- name: Extract PR Description
34-
id: extract
35-
run: |
36-
BODY="${{ github.event.pull_request.body }}"
37-
# Extract from '# Releases' onward
38-
RELEASE_NOTES=$(echo "$BODY" | awk '/^# Releases/{flag=1} flag')
39-
# Save it to an environment variable
40-
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
41-
echo "$RELEASE_NOTES" >> $GITHUB_ENV
42-
echo "EOF" >> $GITHUB_ENV
4333

44-
- name: Send Telegram Message
45-
uses: appleboy/telegram-action@master
46-
with:
47-
to: ${{ secrets.TELEGRAM_TO }}
48-
token: ${{ secrets.TELEGRAM_TOKEN }}
49-
message: |
50-
🚀 New Changeset PR Created
51-
🔗 PR: ${{ github.event.pull_request.html_url }}
52-
👤 Author: ${{ github.actor }}
53-
📦 Release Notes:
54-
${{ env.RELEASE_NOTES }}
5534

5635
- name: "🔧 setup pnpm"
5736
uses: pnpm/action-setup@v3
@@ -82,6 +61,29 @@ jobs:
8261
with:
8362
path: .vitepress/dist
8463

64+
- name: Extract PR Description
65+
id: extract
66+
run: |
67+
BODY="${{ github.event.pull_request.body }}"
68+
# Extract from '# Releases' onward
69+
RELEASE_NOTES=$(echo "$BODY" | awk '/^# Releases/{flag=1} flag')
70+
# Save it to an environment variable
71+
echo "RELEASE_NOTES<<EOF" >> $GITHUB_ENV
72+
echo "$RELEASE_NOTES" >> $GITHUB_ENV
73+
echo "EOF" >> $GITHUB_ENV
74+
75+
- name: Send Telegram Message
76+
uses: appleboy/telegram-action@master
77+
with:
78+
to: ${{ secrets.TELEGRAM_TO }}
79+
token: ${{ secrets.TELEGRAM_TOKEN }}
80+
message: |
81+
🚀 New Changeset PR Created
82+
🔗 PR: ${{ github.event.pull_request.html_url }}
83+
👤 Author: ${{ github.actor }}
84+
📦 Release Notes:
85+
${{ env.RELEASE_NOTES }}
86+
8587
8688
deploy:
8789
environment:

0 commit comments

Comments
 (0)