Skip to content

Commit 92656be

Browse files
committed
run pre-commit as action
1 parent 5a899a0 commit 92656be

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pre-commit.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pre-commit
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
pre-commit:
7+
runs-on: ubuntu-latest
8+
env:
9+
FORCE_COLOR: "1"
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.x'
15+
- id: file_changes
16+
uses: trilom/[email protected]
17+
with:
18+
output: ' '
19+
- uses: pre-commit/[email protected]
20+
with:
21+
extra_args: --files ${{ steps.file_changes.outputs.files}}

0 commit comments

Comments
 (0)