mirror of
https://github.com/LibreScore/dl-librescore
synced 2024-12-18 13:54:09 +01:00
32 lines
952 B
YAML
32 lines
952 B
YAML
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 github-actions@github.com
|
|
git add -A
|
|
git commit -m "chore: update translations"
|
|
git push
|