mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-09 04:37:33 +08:00
28 lines
755 B
YAML
28 lines
755 B
YAML
name: Update Translations
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.x'
|
|
- run: pip install transifex-python
|
|
- name: Update translations
|
|
env:
|
|
TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}
|
|
run: ./tools/translate.py -t "$TRANSIFEX_TOKEN"
|
|
- name: Commit changes
|
|
run: |
|
|
git config --global user.name 'Traccar Bot'
|
|
git config --global user.email 'support@traccar.org'
|
|
git commit -am "Update localization files"
|
|
git remote set-url origin "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}"
|
|
git push
|