Skip to content

💚 Pre-commit: Continue on error #21

💚 Pre-commit: Continue on error

💚 Pre-commit: Continue on error #21

name: Pre-commit format
concurrency:
cancel-in-progress: true
group: Pre-commit-format
on: push
jobs:
format-code:
runs-on: ubuntu-latest
permissions:
contents: write
continue-on-error: true
steps:
- uses: actions/checkout@main
# - name: Install python
# uses: actions/setup-python@main
# with:
# cache: pip
# python-version: "3.12"
# - name: Install python requirements
# run: pip install -r requirements.txt
- uses: pre-commit/action@main
with:
extra_args: --all-files
- name: Update pre-commit hook
run: pre-commit autoupdate
- uses: stefanzweifel/git-auto-commit-action@master
with:
commit_message: "🐛 [pre-commit action]: Auto format"