We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b31c4c commit fd37607Copy full SHA for fd37607
.github/workflows/pre-commit.yml
@@ -1,21 +1,11 @@
1
-name: Pre-Commit Checks
+name: pre-commit
2
3
on: [push, pull_request]
4
5
jobs:
6
pre-commit:
7
- runs-on: ubuntu-22.04
+ runs-on: ubuntu-latest
8
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
+ - uses: actions/checkout@v3
+ - uses: actions/setup-python@v3
+ - uses: pre-commit/action@v3.0.1
0 commit comments