فهرست منبع

ci: add telegram notify to build release workflow

Nicolas Giard 3 سال پیش
والد
کامیت
0a1bc707fb
1فایلهای تغییر یافته به همراه12 افزوده شده و 0 حذف شده
  1. 12 0
      .github/workflows/build.yml

+ 12 - 0
.github/workflows/build.yml

@@ -358,6 +358,18 @@ jobs:
       env:
         SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
         SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK
+        
+    - name: Notify Telegram Channel
+      uses: appleboy/telegram-action@0.0.3
+      with:
+        to: ${{ secrets.TELEGRAM_TO }}
+        token: ${{ secrets.TELEGRAM_TOKEN }}
+        format: markdown
+        message: |
+          Wiki.js **${{ github.ref_name }}** has been released!
+          
+          See [release notes](https://github.com/requarks/wiki/releases) for details.
+        
 
   build-do-image:
     name: Build DigitalOcean Image