浏览代码

Merge pull request #316 from dadyarri/add-automatic-notifications

Add automatic notifications
Nathan.fooo 3 年之前
父节点
当前提交
983fed16dc
共有 2 个文件被更改,包括 25 次插入0 次删除
  1. 14 0
      .github/workflows/notify_on_strings_update.yml
  2. 11 0
      .github/workflows/release.yml

+ 14 - 0
.github/workflows/notify_on_strings_update.yml

@@ -0,0 +1,14 @@
+name: Strings update
+on:
+  push:
+    branches: main
+    paths:
+      - "frontend/app_flowy/assets/translations/en.json"
+jobs:
+  # some way to send notification
+  - name: Notify in Discord
+    env:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+    uses: Ilshidur/action-discord@master
+    with:
+      args: '@appflowytranslators English UI strings has been updated.'

+ 11 - 0
.github/workflows/release.yml

@@ -0,0 +1,11 @@
+name: Release landed
+on:
+  release:
+    types: [published]
+jobs:
+  - name: Notify in Discord
+    env:
+      DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+    uses: Ilshidur/action-discord@master
+    with:
+      args: '${{ github.event.tag_name }} is out 🚀 ${{ github.event.url }}\n${{ github.event.body }}'