Update job name
This commit is contained in:
parent
4969ec22e6
commit
edd540f975
1 changed files with 25 additions and 0 deletions
25
.github/workflows/translation.yml
vendored
Normal file
25
.github/workflows/translation.yml
vendored
Normal 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 }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue