Skip to content

Bump invoke from 2.1.3 to 2.2.0 #112

Bump invoke from 2.1.3 to 2.2.0

Bump invoke from 2.1.3 to 2.2.0 #112

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install pre-commit
run: |
python -m pip install pre-commit
python -m pip freeze --local
shell: bash
- name: Cache pre-commit
uses: actions/cache@v3
with:
path: ~/.cache/pre-commit
key: pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
- name: Run pre-commit
run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
shell: bash
- name: Commit changes
if: failure()
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: ":art: Running pre-commit hooks"