Update i18n EN translations #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update i18n EN translations | |
| on: | |
| schedule: | |
| - cron: "0 12 * * 3" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version-file: "package.json" | |
| - run: npm ci | |
| - run: npm i -D zigbee-herdsman-converters | |
| - name: Update EN i18n JSON file | |
| run: node ./scripts/override-z2m-en.mjs | |
| - name: Lint | |
| run: npm run check | |
| - name: Commit changes | |
| run: | | |
| git config --global user.name 'github-actions[bot]' | |
| git config --global user.email 'github-actions[bot]@users.noreply.github.com' | |
| git add ./src/i18n/locales/en.json | |
| git commit -m "fix: update i18n EN translations" || echo 'Nothing to commit' | |
| git push |