name: Translation Notify
on:
  push:
    branches: [ main ]
    paths:
      - "frontend/app_flowy/assets/translations/en.json"
  pull_request:
    branches: [ main ]
    paths:
      - "frontend/app_flowy/assets/translations/en.json"
jobs:
  Discord-Notify:
    runs-on: ubuntu-latest
    steps:
      - uses: Ilshidur/action-discord@0.3.2
        env:
          DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
        with:
          args: '@appflowytranslators English UI strings has been updated.'
