Skip to content

Commit

Permalink
chore: add github action for pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-semenov committed Apr 15, 2024
1 parent c70a288 commit 37b3bdd
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: pre-commit

on:
push:
pull_request:
branches: [ main ]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3

- id: file_changes
uses: trilom/[email protected]
with:
output: ' '

- uses: pre-commit/[email protected]
with:
extra_args: --files ${{ steps.file_changes.outputs.files }} --show-diff-on-failure

0 comments on commit 37b3bdd

Please sign in to comment.