Skip to content

fix pre-commit.yml

fix pre-commit.yml #23

Workflow file for this run

name: pre-commit
on:
pull_request:
push:
branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
# Identify the files chaged in all commits
- id: changed-files
uses: tj-actions/changed-files@v36
- uses: pre-commit/action@v3.0.0
with:
# run pre-hooks on all commits
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}
- uses: pre-commit-ci/lite-action@v1.1.0
if: always()