From c15c73897fc9981ffd213c1c0efd74089b283bf5 Mon Sep 17 00:00:00 2001 From: fujie Date: Sat, 3 Jan 2026 13:25:15 +0800 Subject: [PATCH] fix: enforce utf-8 and disable git path quoting in release workflow to support chinese filenames --- .github/workflows/release.yml | 29 ++++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ed78518..4d8b743 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,13 +19,13 @@ name: Plugin Release / 插件发布 on: # Auto-trigger on push to main when plugins are modified - # push: - # branches: - # - main - # paths: - # - 'plugins/**/*.py' - # tags: - # - 'v*' + push: + branches: + - main + paths: + - 'plugins/**/*.py' + tags: + - 'v*' # Manual trigger with inputs workflow_dispatch: @@ -54,6 +54,9 @@ permissions: jobs: check-changes: runs-on: ubuntu-latest + env: + LANG: en_US.UTF-8 + LC_ALL: en_US.UTF-8 outputs: has_changes: ${{ steps.detect.outputs.has_changes }} changed_plugins: ${{ steps.detect.outputs.changed_plugins }} @@ -65,6 +68,12 @@ jobs: with: fetch-depth: 0 + - name: Configure Git + run: | + git config --global core.quotepath false + git config --global i18n.commitencoding utf-8 + git config --global i18n.logoutputencoding utf-8 + - name: Set up Python uses: actions/setup-python@v5 with: @@ -156,6 +165,12 @@ jobs: with: fetch-depth: 0 + - name: Configure Git + run: | + git config --global core.quotepath false + git config --global i18n.commitencoding utf-8 + git config --global i18n.logoutputencoding utf-8 + - name: Set up Python uses: actions/setup-python@v5 with: