mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-29 12:00:02 +00:00
ci: run ruff format and auto-commit instead of format check
Co-authored-by: Ali Khokhar <alishahryar2@gmail.com>
This commit is contained in:
parent
6b9bc617cb
commit
ebdfdbb6c9
1 changed files with 11 additions and 2 deletions
13
.github/workflows/tests.yml
vendored
13
.github/workflows/tests.yml
vendored
|
|
@ -9,6 +9,8 @@ on:
|
|||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
|
@ -29,5 +31,12 @@ jobs:
|
|||
- name: Type check
|
||||
run: uv run ty check
|
||||
|
||||
- name: Check formatting
|
||||
run: uv run ruff format --check
|
||||
- name: Format
|
||||
run: uv run ruff format
|
||||
|
||||
- name: Commit and push formatting changes
|
||||
run: |
|
||||
git config user.name "github-actions[bot]"
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
git add -A
|
||||
git diff --staged --quiet || (git commit -m "style: apply ruff format" && git push)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue