Skip to content

Commit

Permalink
ci: add git auto commit action
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed May 1, 2024
1 parent e725799 commit 4e02a19
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
- name: Install pre-commit
run: conda install -c conda-forge pre-commit

- name: Install pre-commit hooks
run: pre-commit install

- 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 4e02a19

Please sign in to comment.