Skip to content

Update translations #82

Update translations

Update translations #82

name: Update translations
on:
workflow_dispatch:
push:
paths:
- "src/i18n/*.json"
pull_request:
paths:
- "src/i18n/*.json"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
translate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update translations
run: |
sudo npm i -g prettier
bash ./lang.sh
sed -ri 's/"version": "'"([[:digit:]]+)\.([[:digit:]]+)\.([[:digit:]]+)"'",/echo \\"version\\": \\"\1.\2.$((\3+1))\\",/e' package.json
prettier --write package.json
git config user.name github-actions
git config user.email [email protected]
git add -A
git commit -m "chore: update translations"
git push