Explorar el Código

ci: update discord web hook

appflowy hace 3 años
padre
commit
04f61cdf5e
Se han modificado 1 ficheros con 9 adiciones y 8 borrados
  1. 9 8
      .github/workflows/notify_on_strings_update.yml

+ 9 - 8
.github/workflows/notify_on_strings_update.yml

@@ -1,14 +1,15 @@
 name: Strings update
 on:
   push:
-    branches: main
+    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.'
+  Discord-Notify:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: Ilshidur/action-discord@master
+        env:
+          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
+        with:
+          args: '@appflowytranslators English UI strings has been updated.'