Skip to content

Commit

Permalink
ci: add git auto commit action (#88)
Browse files Browse the repository at this point in the history
* ci: add git auto commit action with pre-commit

* ci: allow to continue on error after run pre-commit

* ci: merge to pre commit yaml
  • Loading branch information
jellydn committed May 1, 2024
1 parent e725799 commit 2c6c258
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,22 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- uses: pre-commit/action@v3.0.1

format-code:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install pre-commit
run: pip install pre-commit

- name: Run pre-commit
run: pre-commit run --all-files
continue-on-error: true

# Commit all changed files back to the repository
- uses: stefanzweifel/git-auto-commit-action@v5
4 changes: 3 additions & 1 deletion cspell-tool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ docstrings
sweepai
pygithub
sandboxed
biomejs
biomejs
miniconda
stefanzweifel

0 comments on commit 2c6c258

Please sign in to comment.