-
-
Notifications
You must be signed in to change notification settings - Fork 145
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Github Actions
committed
Jul 8, 2020
1 parent
34072ce
commit 8ba276b
Showing
1 changed file
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
|