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

22 lines
752 B
YAML

name: Update Translations
on:
workflow_dispatch:
jobs:
translation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: git config --global user.email "actions@github.com" && git config --global user.name "actions"
- run: pip install transifex-client
- run: echo -e "[https://www.transifex.com]\ntoken = ${{ secrets.TRANSIFEX_TOKEN }}" > ~/.transifexrc
- 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 }}