mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-06 01:05:54 -05:00
fix: write hint about fetch-depth (#5241)
Point users at the fetch-depth option when not running locally.
This commit is contained in:
parent
1f2fbb14cd
commit
787b63ddb2
1 changed files with 3 additions and 0 deletions
|
@ -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)"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue