diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 24635fb..e06996f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,28 +30,7 @@ jobs: with: fetch-depth: 0 - - name: Extract PR Description - id: extract - run: | - BODY="${{ github.event.pull_request.body }}" - # Extract from '# Releases' onward - RELEASE_NOTES=$(echo "$BODY" | awk '/^# Releases/{flag=1} flag') - # Save it to an environment variable - echo "RELEASE_NOTES<> $GITHUB_ENV - echo "$RELEASE_NOTES" >> $GITHUB_ENV - echo "EOF" >> $GITHUB_ENV - - name: Send Telegram Message - uses: appleboy/telegram-action@master - with: - to: ${{ secrets.TELEGRAM_TO }} - token: ${{ secrets.TELEGRAM_TOKEN }} - message: | - 🚀 New Changeset PR Created - 🔗 PR: ${{ github.event.pull_request.html_url }} - 👤 Author: ${{ github.actor }} - 📦 Release Notes: - ${{ env.RELEASE_NOTES }} - name: "🔧 setup pnpm" uses: pnpm/action-setup@v3 @@ -82,6 +61,29 @@ jobs: with: path: .vitepress/dist + - name: Extract PR Description + id: extract + run: | + BODY="${{ github.event.pull_request.body }}" + # Extract from '# Releases' onward + RELEASE_NOTES=$(echo "$BODY" | awk '/^# Releases/{flag=1} flag') + # Save it to an environment variable + echo "RELEASE_NOTES<> $GITHUB_ENV + echo "$RELEASE_NOTES" >> $GITHUB_ENV + echo "EOF" >> $GITHUB_ENV + + - name: Send Telegram Message + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + 🚀 New Changeset PR Created + 🔗 PR: ${{ github.event.pull_request.html_url }} + 👤 Author: ${{ github.actor }} + 📦 Release Notes: + ${{ env.RELEASE_NOTES }} + deploy: environment: