Ver Fonte

Update main.yml

James McConnell há 1 ano atrás
pai
commit
7dd761bf00
1 ficheiros alterados com 9 adições e 9 exclusões
  1. 9 9
      .github/workflows/main.yml

+ 9 - 9
.github/workflows/main.yml

@@ -58,10 +58,10 @@ jobs:
       - name: Send Telegram Notification
         if: ${{ inputs.release_type == 'Actions' }}
         run: |
-          curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" \
+          curl -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
             -F chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
             -F message_thread_id="${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}" \
-            -F caption="
+            -F text="
             🚀 Build started for ${{ github.repository }}! 
             📦 *Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})
             🗂️ *Branch:* ${{ github.ref_name }}
@@ -293,13 +293,13 @@ jobs:
             
       - name: Send Telegram Notification
         run: |
-          curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendDocument" \
+          curl -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_BOT_TOKEN }}/sendMessage" \
             -F chat_id="${{ secrets.TELEGRAM_CHAT_ID }}" \
             -F message_thread_id="${{ secrets.TELEGRAM_MESSAGE_THREAD_ID }}" \
-            -F caption="
-            🌽 *New Stable Kernel Release Uploaded* 
-            📦 *Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})
-            🗂️ *Branch:* ${{ github.ref_name }}
-            ✏️ *Commit:* [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
-            [🔗 View GitHub Release](https://github.com/${{ github.repository }}//releases/tag/${{ env.NEW_TAG }})" \
+            -F text="
+            🌽 *New Stable Kernel Release Uploaded*  
+            📦 *Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})  
+            🗂️ *Branch:* ${{ github.ref_name }}  
+            ✏️ *Commit:* [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})  
+            [🔗 View GitHub Release](https://github.com/${{ github.repository }}/releases/tag/${{ env.NEW_TAG }})" \
             -F parse_mode="Markdown"