add ioBroker localization auto-gen

This commit is contained in:
joBr99
2022-06-18 22:36:31 +02:00
parent 32a6e7932a
commit 59364f8fe9
3 changed files with 154 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
name: nextion2text
on:
pull_request:
paths:
- HMI/code_gen/localization/iobroker.py
- apps/nspanel-lovelace-ui/luibackend/translations/*
- .github/workflows/iobroker-localization.yml
push:
branches:
- main
paths:
- HMI/code_gen/localization/iobroker.py
- apps/nspanel-lovelace-ui/luibackend/translations/*
- .github/workflows/iobroker-localization.yml
jobs:
gen-nextion-to-text:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- name: Gen ioBroker localization file
continue-on-error: false
run: |
cd apps/nspanel-lovelace-ui/luibackend
python ../../HMI/code_gen/localization/iobroker.py
mv ioBroker_NSPanel_locales.json ../../ioBroker/ioBroker_NSPanel_locales.json
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update iobroker localization file
#file_pattern: "**.txt"