Skip to content

Commit fd37607

Browse files
committed
fix git action
1 parent 7b31c4c commit fd37607

File tree

1 file changed

+5
-15
lines changed

1 file changed

+5
-15
lines changed

.github/workflows/pre-commit.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,11 @@
1-
name: Pre-Commit Checks
1+
name: pre-commit
22

33
on: [push, pull_request]
44

55
jobs:
66
pre-commit:
7-
runs-on: ubuntu-22.04
7+
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout code
10-
uses: actions/checkout@v3
11-
12-
- name: Set up Python
13-
uses: actions/setup-python@v4
14-
with:
15-
python-version: '3.11'
16-
17-
- name: Install pre-commit
18-
run: pip install pre-commit
19-
20-
- name: Run pre-commit hooks
21-
run: git diff --name-only HEAD^ | grep '\.yaml\|\.md' | xargs pre-commit run --files
9+
- uses: actions/checkout@v3
10+
- uses: actions/setup-python@v3
11+
- uses: pre-commit/action@v3.0.1

0 commit comments

Comments
 (0)