Pārlūkot izejas kodu

Generates pot files automatically.

Signed-off-by: Pierre Ozoux <pierre@ozoux.net>
Pierre Ozoux 4 gadi atpakaļ
vecāks
revīzija
3e2d3c8f38
1 mainītis faili ar 25 papildinājumiem un 0 dzēšanām
  1. 25 0
      .github/workflows/generates_locales.yml

+ 25 - 0
.github/workflows/generates_locales.yml

@@ -0,0 +1,25 @@
+name: L10n
+on:
+  push:
+    branches:
+    - master
+    paths:
+    - 'doc/**'
+    - '!doc/locale/**'
+jobs:
+  generates_locales:
+    runs-on: ubuntu-latest
+    steps:
+    - uses: actions/checkout@v2
+    - uses: ammaraskar/sphinx-action@master
+      with:
+        docs-folder: "doc/"
+        pre-build-command: pip install -r requirements.txt
+        build-command: make gettext
+    - uses: actions/checkout@v2
+      - name: Commit report
+        run: |
+          git config --global user.name 'Nextcloud Bot'
+          git config --global user.email 'bot@nextcloud.com'
+          git commit -am "Updates catalog templates (POT files fetched automatically by transifex)"
+          git push