Skip to content

ci: add git auto commit action #1

ci: add git auto commit action

ci: add git auto commit action #1

Workflow file for this run

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