Skip to content

Commit

Permalink
fix: write hint about fetch-depth (#5241)
Browse files Browse the repository at this point in the history
Point users at the fetch-depth option when not running locally.
  • Loading branch information
ferrarimarco committed Feb 9, 2024
1 parent 1f2fbb1 commit 787b63d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/functions/buildFileList.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
}
Expand Down

0 comments on commit 787b63d

Please sign in to comment.