From 787b63ddb2b5a8632a7169cd6ad71dca4a6af8d2 Mon Sep 17 00:00:00 2001 From: Marco Ferrari Date: Fri, 9 Feb 2024 18:45:00 +0100 Subject: [PATCH] fix: write hint about fetch-depth (#5241) Point users at the fetch-depth option when not running locally. --- lib/functions/buildFileList.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/functions/buildFileList.sh b/lib/functions/buildFileList.sh index c1643669..e80bf681 100755 --- a/lib/functions/buildFileList.sh +++ b/lib/functions/buildFileList.sh @@ -2,6 +2,9 @@ function IssueHintForFullGitHistory() { info "Check that the local repository has the full history and that the repository is not shallow." + if [[ "${RUN_LOCAL}" == "false" ]]; then + info "Check that you set the 'fetch-depth: 0' option for the actions/checkout step in your GitHub Actions workflow." + fi info "See https://github.com/super-linter/super-linter#get-started" info "Is shallow repository: $(git -C "${GITHUB_WORKSPACE}" rev-parse --is-shallow-repository)" }