Skip to content

Commit

Permalink
ci: run pre-check for changed files only
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev committed Jan 17, 2025
1 parent 1ddc17a commit d8cac16
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/check-pre-commit.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
name: Check pre-commit
name: pre-commit check

on:
pull_request:

jobs:
check-pre-commit:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
- id: changed-files
uses: tj-actions/changed-files@v45
- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.changed-files.outputs.all_changed_files }}

0 comments on commit d8cac16

Please sign in to comment.