Procházet zdrojové kódy

Disable Telegram notification in main.yml

Comment out the Telegram notification step in the workflow.
jimsterino98 před 7 měsíci
rodič
revize
6bff96c0de
1 změnil soubory, kde provedl 19 přidání a 19 odebrání
  1. 19 19
      .github/workflows/main.yml

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

@@ -136,22 +136,22 @@ jobs:
             done
           fi
             
-      - name: Send Telegram Notification
-        if: inputs.release_type != 'Actions'
-        run: |
-          RELEASE_TYPE_TEXT=""
-          if [ "${{ inputs.release_type }}" == "Pre-Release" ]; then
-            RELEASE_TYPE_TEXT="🧪 *Pre-Release*"
-          else
-            RELEASE_TYPE_TEXT="🚀 *Release*"
-          fi
-          
-          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_TOPIC_ID_GKI }}" \
-            -F text="
-            🌽 *New Kernel $RELEASE_TYPE_TEXT Uploaded*  
-            📦 *Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})  
-            ✏️ *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"
+#      - name: Send Telegram Notification
+#        if: inputs.release_type != 'Actions'
+#        run: |
+#          RELEASE_TYPE_TEXT=""
+#          if [ "${{ inputs.release_type }}" == "Pre-Release" ]; then
+#            RELEASE_TYPE_TEXT="🧪 *Pre-Release*"
+#          else
+#            RELEASE_TYPE_TEXT="🚀 *Release*"
+#          fi
+#          
+#          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_TOPIC_ID_GKI }}" \
+#            -F text="
+#            🌽 *New Kernel $RELEASE_TYPE_TEXT Uploaded*  
+#            📦 *Repository:* [${{ github.repository }}](https://github.com/${{ github.repository }})  
+#            ✏️ *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"