Skip to content

Commit 2191e40

Browse files
committed
👷 properly fix translation ci
1 parent 5f4cfaa commit 2191e40

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎.github/workflows/translations.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,15 @@ jobs:
2222
with:
2323
python-version: '3.10'
2424
cache: 'pip'
25-
cache-dependency-path: setup.py
25+
cache-dependency-path: |
26+
setup.py
27+
requirements.txt
2628
- name: Install system-level dependencies
2729
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
2830
- name: Install dependencies
2931
run: |
3032
python -m pip install --upgrade pip pip-tools
31-
pip-sync requirements-dev.txt
33+
pip-sync requirements.txt
3234
pip install -e .
3335
- name: Setup Git
3436
run: |
@@ -38,6 +40,6 @@ jobs:
3840
run: make messagesde
3941
- name: Commit translations
4042
run: |
41-
git add .
43+
git add **/django.po || true
4244
git commit -m "💬 update translation messages" || true
43-
git push -u main:weblate-source
45+
git push -u origin main:weblate-source --force

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ requirements: requirements.in requirements-dev.in requirements-production.in
1616
pip-compile requirements-production.in
1717

1818
messagesde:
19-
django-admin makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --ignore LICENSE.txt --add-location file
19+
python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file

0 commit comments

Comments
 (0)