From 5aee9b954eb5f4b4fa4288541a0e37dff0ea08cd Mon Sep 17 00:00:00 2001 From: Lyda <1829913225@qq.com> Date: Mon, 13 Oct 2025 11:32:28 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=90=8E=E5=B7=A5=E4=BD=9C=E5=8C=BA=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E6=A3=80=E6=B5=8B=E5=8F=8A=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pnpm-install/action.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pnpm-install/action.yml b/pnpm-install/action.yml index c784ca0..f1666b8 100644 --- a/pnpm-install/action.yml +++ b/pnpm-install/action.yml @@ -170,7 +170,14 @@ runs: rm -rf .pnpm-store || true fi echo "🧾 git status --short" - git status --short || true + CHANGES=$(git status --short || true) + if [[ -n "$CHANGES" ]]; then + echo "$CHANGES" + echo "❌ 安装依赖后检测到工作区存在未提交变更。请检查上述文件,必要时更新配置或在调用前设置 PNPM_STORE_DIR。" >&2 + exit 1 + else + echo "✅ 工作区保持干净" + fi - name: 总结 shell: bash