mirror of
https://github.com/pre-commit/action.git
synced 2025-11-07 18:56:55 +00:00
v1.1.0
This commit is contained in:
parent
b1bfac3edf
commit
663c15c2eb
1 changed files with 3 additions and 3 deletions
|
|
@ -30,7 +30,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ~/.cache/pre-commit
|
path: ~/.cache/pre-commit
|
||||||
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- uses: pre-commit/action@v1.0.1
|
- uses: pre-commit/action@v1.1.0
|
||||||
```
|
```
|
||||||
|
|
||||||
This does a few things:
|
This does a few things:
|
||||||
|
|
@ -50,7 +50,7 @@ Here's a sample step configuration that only runs the `flake8` hook against all
|
||||||
the files (use the template above except for the `pre-commit` action):
|
the files (use the template above except for the `pre-commit` action):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: pre-commit/action@v1.0.1
|
- uses: pre-commit/action@v1.1.0
|
||||||
with:
|
with:
|
||||||
extra_args: flake8 --all-files
|
extra_args: flake8 --all-files
|
||||||
```
|
```
|
||||||
|
|
@ -65,7 +65,7 @@ here's an example configuration for that (use the template above except for the
|
||||||
`pre-commit` action):
|
`pre-commit` action):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- uses: pre-commit/action@v1.0.1
|
- uses: pre-commit/action@v1.1.0
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue