From 8ba276b2444e938dfc4a7ec990b590b0be4f11e9 Mon Sep 17 00:00:00 2001 From: Github Actions Date: Wed, 8 Jul 2020 21:31:39 +0000 Subject: [PATCH] Deployed to github pages --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c113e93..9fe68da 100644 --- a/README.md +++ b/README.md @@ -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