traccar-web/.github/workflows/translation.yml

28 lines
755 B
YAML
Raw Permalink Normal View History

2022-07-17 00:37:48 +08:00
name: Update Translations
2022-07-17 00:40:13 +08:00
on:
workflow_dispatch:
2022-07-17 00:37:48 +08:00
jobs:
build:
runs-on: ubuntu-latest
steps:
2024-04-07 03:41:08 +08:00
- uses: actions/checkout@v4
2022-07-17 00:37:48 +08:00
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install transifex-python
- name: Update translations
env:
TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}
2022-07-17 00:41:53 +08:00
run: ./tools/translate.py -t "$TRANSIFEX_TOKEN"
2022-07-17 00:37:48 +08:00
- 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