Skip to content

Commit 51bcaf4

Browse files
committed
Add CI job to automatically run pre-commit on the diff to ensure all
changes are up to standard
1 parent e05563a commit 51bcaf4

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pre-commit
2+
3+
on:
4+
pull_request:
5+
6+
jobs:
7+
pre-commit:
8+
runs-on: ubuntu-20.04
9+
steps:
10+
- uses: actions/checkout@v2
11+
with:
12+
fetch-depth: 0
13+
14+
- uses: actions/setup-python@v2
15+
16+
- uses: pre-commit/action@v2.0.0
17+
with:
18+
extra_args: --from-ref origin/vara-dev --to-ref HEAD

0 commit comments

Comments
 (0)