We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6f949f8 + 4c14f32 commit 35686c4Copy full SHA for 35686c4
1 file changed
.github/workflows/precommit-check.yml
@@ -0,0 +1,26 @@
1
+name: Run pre-commit checks
2
+
3
+on: [push, pull_request]
4
5
+permissions:
6
+ contents: read
7
8
+jobs:
9
+ pre-commit:
10
+ runs-on: ubuntu-24.04
11
+ timeout-minutes: 10
12
13
+ steps:
14
+ - uses: actions/checkout@v3
15
+ - name: Set up Python
16
+ uses: actions/setup-python@v3
17
+ with:
18
+ python-version: "3.x"
19
+ - id: changed_files
20
+ uses: trilom/file-changes-action@v1.2.3
21
22
+ output: ' '
23
+ - name: Run pre-commit
24
+ uses: pre-commit/action@v3.0.1
25
26
+ extra_args: --files ${{ steps.changed_files.outputs.files}}
0 commit comments