From a62374900cfdb0a600eac7b386616a97813b0096 Mon Sep 17 00:00:00 2001 From: krmax44 Date: Mon, 4 Mar 2024 14:34:55 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20add=20ci=20task=20to=20update=20?= =?UTF-8?q?message=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/translations.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 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 000000000..92b2f45ef --- /dev/null +++ b/.github/workflows/translations.yml @@ -0,0 +1,41 @@ +name: FragDenStaat CI + +on: + push: + branches: + - main + +concurrency: + group: ${{ github.workflow }} + cancel-in-progress: true + +permissions: + contents: write + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + cache: 'pip' + cache-dependency-path: setup.py + - name: Install system-level dependencies + run: sudo apt-get update && sudo apt-get install gettext + - name: Install dependencies + run: | + python -m pip install --upgrade pip pip-tools + pip-sync requirements-dev.txt + pip install -e . + - name: Setup Git + run: | + git config user.name "fdsbot" + git config user.email "119665132+fdsbot@users.noreply.github.com" + - name: Compile translations + run: python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file + - name: Commit translations + run: | + git add . + (git commit -m "💬 update translation messages" && git push -u main:weblate-source --force) || true