From 66a42992985ebd394aaa2d0393d58b77b0b33fd0 Mon Sep 17 00:00:00 2001 From: Artur Date: Sat, 11 Mar 2023 15:15:37 +0100 Subject: [PATCH] added docs info about fetch-depth: 0 --- .../examples/azure/gitversion/setup/usage-examples.md | 8 ++++++++ .../github/gitversion/setup/usage-examples.md | 11 +++++++++++ 2 files changed, 19 insertions(+) diff --git a/docs/examples/azure/gitversion/setup/usage-examples.md b/docs/examples/azure/gitversion/setup/usage-examples.md index f57ca4c..52c7fbd 100644 --- a/docs/examples/azure/gitversion/setup/usage-examples.md +++ b/docs/examples/azure/gitversion/setup/usage-examples.md @@ -31,6 +31,14 @@ preferLatestVersion: ## Usage examples +In order for the gitversion to properly work you need to clone the repository with the entire history: + +```yaml +steps: + - checkout: self + fetchDepth: 0 +``` + ### Example 1 Install the latest GitVersion 5 version. diff --git a/docs/examples/github/gitversion/setup/usage-examples.md b/docs/examples/github/gitversion/setup/usage-examples.md index d3e31d1..7ed2f91 100644 --- a/docs/examples/github/gitversion/setup/usage-examples.md +++ b/docs/examples/github/gitversion/setup/usage-examples.md @@ -27,6 +27,17 @@ ignoreFailedSources: ## Usage examples +In order for the gitversion to properly work you need to clone the repository with the entire history: + +```yaml +steps: + - + name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 +``` + ### Example 1 Install the latest GitVersion 5 version.