|
30 | 30 | with: |
31 | 31 | fetch-depth: 0 |
32 | 32 |
|
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 |
43 | 33 |
|
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 }} |
55 | 34 |
|
56 | 35 | - name: "🔧 setup pnpm" |
57 | 36 | uses: pnpm/action-setup@v3 |
|
82 | 61 | with: |
83 | 62 | path: .vitepress/dist |
84 | 63 |
|
| 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 | +
|
85 | 87 |
|
86 | 88 | deploy: |
87 | 89 | environment: |
|
0 commit comments