]> git.mxchange.org Git - friendica.git/commitdiff
Add auto messages.po updater
authorPhilipp <admin@philipp.info>
Sat, 10 Apr 2021 10:58:07 +0000 (12:58 +0200)
committerPhilipp <admin@philipp.info>
Sat, 10 Apr 2021 18:07:28 +0000 (20:07 +0200)
.github/workflows/transifex.yml [new file with mode: 0644]

diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml
new file mode 100644 (file)
index 0000000..80309f2
--- /dev/null
@@ -0,0 +1,29 @@
+name: Check Transifex
+on: [push, pull_request]
+
+jobs:
+  messages:
+    name: Check message.po changes
+    runs-on: ubuntu-latest
+    steps:
+      - name: Install gettext
+        run: sudo apt-get install gettext
+
+      - name: Checkout
+        uses: actions/checkout@v2
+
+      - name: Run Xgettext
+        run: ./bin/run_xgettext.sh
+
+      - name: Commit changed message.po
+        run: |
+          git config --local user.email "workflow@github.com"
+          git config --local user.name "GitHub Workflow"
+          git add ./view/lang/C/messages.po
+          git commit -m "Update message.po" || echo "Nothing to update"
+
+      - name: Push changes
+        uses: ad-m/github-push-action@master
+        with:
+          github_token: ${{ secrets.GITHUB_TOKEN }}
+          branch: ${{ github.ref }}