Skip to content

Commit a623749

Browse files
committed
👷 add ci task to update message files
1 parent 798e4cb commit a623749

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: FragDenStaat CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
concurrency:
9+
group: ${{ github.workflow }}
10+
cancel-in-progress: true
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.10'
23+
cache: 'pip'
24+
cache-dependency-path: setup.py
25+
- name: Install system-level dependencies
26+
run: sudo apt-get update && sudo apt-get install gettext
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip pip-tools
30+
pip-sync requirements-dev.txt
31+
pip install -e .
32+
- name: Setup Git
33+
run: |
34+
git config user.name "fdsbot"
35+
git config user.email "[email protected]"
36+
- name: Compile translations
37+
run: python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file
38+
- name: Commit translations
39+
run: |
40+
git add .
41+
(git commit -m "💬 update translation messages" && git push -u main:weblate-source --force) || true

0 commit comments

Comments
 (0)