Update ruff.yml

pull/1083/head
晴猫 2025-06-10 18:16:28 +09:00 committed by GitHub
parent dd5672aa03
commit d36aa552bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -27,13 +27,15 @@ jobs:
uses: astral-sh/ruff-action@v3
with:
version: "latest"
- run: ruff check --fix
- run: ruff format
- name: Commit changes
- name: Run Ruff Fix
run: ruff check --fix --unsafe-fixes || true
- name: Run Ruff Format
run: ruff format || true
- name: 提交更改
if: success()
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
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
git push