Skip to content

Commit

Permalink
ci: add git auto commit action with pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed May 1, 2024
1 parent e725799 commit 48f4fbf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Format

on: push

jobs:
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

# 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 48f4fbf

Please sign in to comment.