From 44a00d5f18cbbc4fee5e744f12c15f3bbac0e7b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A2=A8=E6=A2=93=E6=9F=92?= <1787882683@qq.com> Date: Thu, 5 Jun 2025 15:43:09 +0800 Subject: [PATCH] =?UTF-8?q?fix(Actions):=20=E6=9B=B4=E6=96=B0Ruff=20Action?= =?UTF-8?q?=E4=B8=AD=E6=A3=80=E6=9F=A5=E5=92=8C=E4=BF=AE=E5=A4=8D=E7=9A=84?= =?UTF-8?q?=E5=AD=90=E4=BB=BB=E5=8A=A1=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ruff.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ruff.yml b/.github/workflows/ruff.yml index ebc7027e1..73926bd89 100644 --- a/.github/workflows/ruff.yml +++ b/.github/workflows/ruff.yml @@ -27,8 +27,10 @@ jobs: uses: astral-sh/ruff-action@v3 with: version: "latest" - - run: ruff check --fix - - run: ruff format + - name: Run Ruff Check + run: ruff check --fix + - name: Run Ruff Format + run: ruff format - name: Commit changes if: success() run: | @@ -36,4 +38,4 @@ jobs: git config --local user.name "github-actions[bot]" git add -A git diff --quiet && git diff --staged --quiet || git commit -m "🤖 自动格式化代码 [skip ci]" - git push \ No newline at end of file + git push