added docs info about fetch-depth: 0
This commit is contained in:
@@ -31,6 +31,14 @@ preferLatestVersion:
|
|||||||
|
|
||||||
## Usage examples
|
## 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
|
### Example 1
|
||||||
|
|
||||||
Install the latest GitVersion 5 version.
|
Install the latest GitVersion 5 version.
|
||||||
|
|||||||
@@ -27,6 +27,17 @@ ignoreFailedSources:
|
|||||||
|
|
||||||
## Usage examples
|
## 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
|
### Example 1
|
||||||
|
|
||||||
Install the latest GitVersion 5 version.
|
Install the latest GitVersion 5 version.
|
||||||
|
|||||||
Reference in New Issue
Block a user