Skip to content

Commit d36aa55

Browse files
authored
Update ruff.yml
1 parent dd5672a commit d36aa55

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

.github/workflows/ruff.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ jobs:
2727
uses: astral-sh/ruff-action@v3
2828
with:
2929
version: "latest"
30-
- run: ruff check --fix
31-
- run: ruff format
32-
- name: Commit changes
30+
- name: Run Ruff Fix
31+
run: ruff check --fix --unsafe-fixes || true
32+
- name: Run Ruff Format
33+
run: ruff format || true
34+
- name: 提交更改
3335
if: success()
3436
run: |
3537
git config --local user.email "github-actions[bot]@users.noreply.github.com"
3638
git config --local user.name "github-actions[bot]"
3739
git add -A
3840
git diff --quiet && git diff --staged --quiet || git commit -m "🤖 自动格式化代码 [skip ci]"
39-
git push
41+
git push

0 commit comments

Comments
 (0)