diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 76d3c6ad8..4d6f82d06 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -22,13 +22,15 @@ jobs: with: python-version: '3.10' cache: 'pip' - cache-dependency-path: setup.py + cache-dependency-path: | + setup.py + requirements.txt - name: Install system-level dependencies run: sudo apt-get update && sudo apt-get install libxml2-dev libxslt1-dev python3-dev libgdal-dev gdal-bin libmagic-dev libmagickwand-dev gettext libpoppler-cpp-dev - name: Install dependencies run: | python -m pip install --upgrade pip pip-tools - pip-sync requirements-dev.txt + pip-sync requirements.txt pip install -e . - name: Setup Git run: | @@ -38,6 +40,6 @@ jobs: run: make messagesde - name: Commit translations run: | - git add . + git add **/django.po || true git commit -m "💬 update translation messages" || true - git push -u main:weblate-source + git push -u origin main:weblate-source --force diff --git a/Makefile b/Makefile index c1389dc7d..a4fd8fe30 100644 --- a/Makefile +++ b/Makefile @@ -16,4 +16,4 @@ requirements: requirements.in requirements-dev.in requirements-production.in pip-compile requirements-production.in messagesde: - django-admin makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --ignore LICENSE.txt --add-location file + python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file