Skip to content

Commit

Permalink
Deployed to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Github Actions committed Jul 8, 2020
1 parent 34072ce commit 8ba276b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,18 @@ this action also provides an additional behaviour when used in private
repositories. when configured with a github token, the action will push back
fixes to the pull request branch.

here's an example configuration for that (use the template above except for the
`pre-commit` action):
using the template above, you'll make two replacements for individual actions:

first is the checkout step, which needs to use unlimited fetch depth for
pushing

```yaml
- uses: actions/checkout@v2
with:
fetch-depth: 0
```

next is passing the token to the pre-commit action

```yaml
- uses: pre-commit/action@v2.0.0
Expand Down

0 comments on commit 8ba276b

Please sign in to comment.