Skip to content

Commit

Permalink
added docs info about fetch-depth: 0
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Mar 11, 2023
1 parent a416195 commit 66a4299
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/examples/azure/gitversion/setup/usage-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
11 changes: 11 additions & 0 deletions docs/examples/github/gitversion/setup/usage-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 66a4299

Please sign in to comment.