-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 add ci task to update message files
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: FragDenStaat CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
cache: 'pip' | ||
cache-dependency-path: setup.py | ||
- name: Install system-level dependencies | ||
run: sudo apt-get update && sudo apt-get install gettext | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip pip-tools | ||
pip-sync requirements-dev.txt | ||
pip install -e . | ||
- name: Setup Git | ||
run: | | ||
git config user.name "fdsbot" | ||
git config user.email "[email protected]" | ||
- name: Compile translations | ||
run: python manage.py makemessages -l de --ignore public --ignore froide-env --ignore node_modules --ignore htmlcov --add-location file | ||
- name: Commit translations | ||
run: | | ||
git add . | ||
(git commit -m "💬 update translation messages" && git push -u main:weblate-source --force) || true |