Skip to content

Commit 35686c4

Browse files
authored
Merge pull request #74 from artiomn/master
Create precommit-check.yml: #73
2 parents 6f949f8 + 4c14f32 commit 35686c4

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
22+
output: ' '
23+
- name: Run pre-commit
24+
uses: pre-commit/action@v3.0.1
25+
with:
26+
extra_args: --files ${{ steps.changed_files.outputs.files}}

0 commit comments

Comments
 (0)