Update job name

This commit is contained in:
Anton Tananaev 2025-06-05 21:53:05 -07:00
parent 4969ec22e6
commit edd540f975

25
.github/workflows/translation.yml vendored Normal file
View file

@ -0,0 +1,25 @@
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 init --no-interactive
tx set --auto-local -r traccar.client "lib/l10n/<lang>.arb" --source-lang en --type KEYVALUEJSON
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 }}