From cbd54bdfe8966417c2ddef9e39c22465ab1ee496 Mon Sep 17 00:00:00 2001 From: Safihre Date: Sun, 28 Jun 2020 12:24:00 +0200 Subject: [PATCH] Add Github workflow to automatically update translatable texts --- .github/workflows/translations.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/translations.yml diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml new file mode 100644 index 0000000..52077ed --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,22 @@ +name: Update translatable texts + +on: + push: + branches: + - develop + +jobs: + translations: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Generate translatable texts + run: | + python3 tools/extract_pot.py + - name: Push translatable texts back to repo + uses: stefanzweifel/git-auto-commit-action@master + with: + commit_message: Update translatable texts + commit_user_name: SABnzbd Automation + commit_user_email: bugs@sabnzbd.org + commit_author: SABnzbd Automation