mirror of https://github.com/Mai-with-u/MaiBot.git
Update ruff.yml
parent
dd5672aa03
commit
d36aa552bd
|
|
@ -27,13 +27,15 @@ jobs:
|
||||||
uses: astral-sh/ruff-action@v3
|
uses: astral-sh/ruff-action@v3
|
||||||
with:
|
with:
|
||||||
version: "latest"
|
version: "latest"
|
||||||
- run: ruff check --fix
|
- name: Run Ruff Fix
|
||||||
- run: ruff format
|
run: ruff check --fix --unsafe-fixes || true
|
||||||
- name: Commit changes
|
- name: Run Ruff Format
|
||||||
|
run: ruff format || true
|
||||||
|
- name: 提交更改
|
||||||
if: success()
|
if: success()
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add -A
|
git add -A
|
||||||
git diff --quiet && git diff --staged --quiet || git commit -m "🤖 自动格式化代码 [skip ci]"
|
git diff --quiet && git diff --staged --quiet || git commit -m "🤖 自动格式化代码 [skip ci]"
|
||||||
git push
|
git push
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue