Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jackton1 committed Apr 11, 2021
1 parent 120ceac commit ca2815e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Expand Up @@ -71,6 +71,26 @@ jobs:
```

### Running [pre-commit](https://pre-commit.com/) on all modified files

```yaml
...
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # otherwise, you will fail to push refs to dest repo

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v3.2

- name: Pre-commit
uses: pre-commit/action@v2.0.0
with:
extra_args: -v --hook-stage push --files ${{ steps.changed-files.outputs.all_modified_files }}
token: ${{ secrets.github_token }}
```


## Inputs

Expand Down

0 comments on commit ca2815e

Please sign in to comment.