trcr/.github/workflows/translation.yml
2025-06-05 22:23:35 -07:00

27 lines
764 B
YAML

name: Update Translations
on:
workflow_dispatch:
jobs:
translation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install transifex-client
- run: |
cat > ~/.transifexrc <<EOF
[https://www.transifex.com]
hostname = https://www.transifex.com
username = api
password = ${{ secrets.TRANSIFEX_TOKEN }}
EOF
- run: tx pull -a
- run: |
git config --global user.name "Traccar Bot"
git config --global user.email "support@traccar.org"
git add lib/l10n/*.arb
git diff --cached --quiet || git commit -m "Update translations"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}