From f7a57ea92bb7071a71e26d8b7acc4aa2b1352a2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Thu, 13 Apr 2023 14:13:29 +0800 Subject: [PATCH] revert changes at #42 (#44) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 没有测试过就不要推了,害人害己。 --- .github/workflows/genlocale.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/genlocale.yml b/.github/workflows/genlocale.yml index d28a7a1..e64f6cd 100644 --- a/.github/workflows/genlocale.yml +++ b/.github/workflows/genlocale.yml @@ -8,11 +8,11 @@ jobs: - name: Check out uses: actions/checkout@master - - name: Extract i18n - run: python3 extract_locale.py - - - name: Sync i18n to zh_CN.json - python3 "./locale/locale_diff.py" + - name: Run locale generation + run: | + python3 extract_locale.py + cd locale + python3 locale_diff.py - name: Commit back if: ${{ !github.head_ref }} @@ -20,10 +20,5 @@ jobs: run: | git config --local user.name 'github-actions[bot]' git config --local user.email '41898282+github-actions[bot]@users.noreply.github.com' - git add . - git commit -m "🎨 Update i18n(更新本地化)" - - name: push changes - uses: ad-m/github-push-action@master - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - branch: main \ No newline at end of file + git add --all + git commit -m "🎨 同步 locale"