mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2024-12-11 17:07:07 +01:00
5e44403346
* Update i18n.js * fixup * update i18n CI * fix trigger? * i18n changes * Update zh-cn.json * add missing keys * Revert "i18n changes" This reverts commitebe0ede6e1
. * Revert "update i18n CI" This reverts commitac923c8bd6
. * Revert "Update i18n.js" This reverts commit14a845836b
. * typo fix --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Touch-Night <1762918301@qq.com>
33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: Update i18n data
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
permissions: # Job-level permissions configuration starts here
|
|
contents: write # 'write' access to repository contents
|
|
steps:
|
|
- name: disable auto crlf
|
|
uses: steve02081504/disable-autocrlf@v1
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository.
|
|
- name: Create local changes
|
|
run: |
|
|
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/generate.py
|
|
aria2c https://raw.githubusercontent.com/SillyTavern/SillyTavern-i18n/main/requirements.txt
|
|
pip install -r ./requirements.txt
|
|
python ./generate.py "" --sort-keys
|
|
rm -f ./generate.py ./requirements.txt
|
|
- name: add all
|
|
run: git add -A
|
|
- name: push
|
|
uses: actions-go/push@master
|
|
with:
|
|
author-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
author-name: github-actions[bot]
|
|
commit-message: 'i18n changes'
|
|
remote: origin
|