Skip to content

Commit

Permalink
👷 add ci task to update message files
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Mar 4, 2024
1 parent 7c86e44 commit 5d30e0f
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Update translations

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

permissions:
contents: write

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
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: make messagesde
- name: Commit translations
run: |
git add .
git commit -m "💬 update translation messages" || true
git push -u main:weblate-source

0 comments on commit 5d30e0f

Please sign in to comment.