Skip to content

Commit

Permalink
👷 properly fix translation ci
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Mar 4, 2024
1 parent 5f4cfaa commit 2191e40
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2191e40

Please sign in to comment.