Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

👷 properly fix translation ci #467

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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