diff --git a/README.md b/README.md index 7ada0b4e..473b5cc2 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Retrieve all changed files and directories relative to the target branch or the > * For monorepos where pulling all the branch history might not be desired, you can omit `fetch-depth` for `pull_request` events. > * For files located in a sub-directory ensure that the pattern specified contains `**/` (globstar) to match any preceding directories or explicitly pass the full path relative to the project root. See: [#314](https://github.com/tj-actions/changed-files/issues/314). > * All multiline inputs should not use double or single qoutes since the value is already a string seperated by a newline character. See [Examples](#examples) for more information. -> * Ensure that `persist-credentials` is set to `true` when configuring `actions/checkout`. +> * Ensure that `persist-credentials` is set to `true` when configuring `actions/checkout` if `fetch-depth` isn't set to `0`. ```yaml name: CI