Просмотр исходного кода

Revert "Merge pull request #740 from RooVetGit/discord_fix"

This reverts commit e16e1324701e1997034109f866d5a70d45792f3d, reversing
changes made to 0e7e5c50bee875b7faba880af76e790d052fb690.
Matt Rubens 11 месяцев назад
Родитель
Сommit
7e237df2e8
1 измененных файлов с 2 добавлено и 6 удалено
  1. 2 6
      .github/workflows/discord-pr-notify.yml

+ 2 - 6
.github/workflows/discord-pr-notify.yml

@@ -11,14 +11,10 @@ jobs:
     if: github.head_ref != 'changeset-release/main'
     steps:
       - name: Send Discord Notification
-        env:
-          PR_TITLE: ${{ github.event.pull_request.title }}
-          PR_URL: ${{ github.event.pull_request.html_url }}
-          PR_USER: ${{ github.event.pull_request.user.login }}
         run: |
           curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
           -H "Content-Type: application/json" \
           -d '{
-            "content": "🚀 **New PR:** $PR_TITLE\n🔗 <$PR_URL>\n👤 **Author:** $PR_USER",
-            "thread_name": "$PR_TITLE by $PR_USER"
+            "content": "🚀 **New PR:** ${{ github.event.pull_request.title }}\n🔗 <${{ github.event.pull_request.html_url }}>\n👤 **Author:** ${{ github.event.pull_request.user.login }}",
+            "thread_name": "${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}"
           }'