Skip to content

Commit be89f69

Browse files
committed
init
0 parents  commit be89f69

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: pre-commit
2+
description: run pre-commit
3+
inputs:
4+
extra_args:
5+
description: options to pass to pre-commit run
6+
required: false
7+
default: "--all-files"
8+
9+
runs:
10+
using: composite
11+
steps:
12+
- uses: actions/cache@v3
13+
with:
14+
path: ~/.cache/pre-commit
15+
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
16+
- run: pre-commit run --show-diff-on-failure --color=always ${{ inputs.extra_args }}
17+
shell: bash

0 commit comments

Comments
 (0)