Skip to content

Commit

Permalink
Added note to explain about fetchDepth restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
seanarmstrong87 authored and arturcic committed Oct 10, 2022
1 parent 569b4c8 commit d946235
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/examples/azure/gitversion/execute/usage-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ Find out how to use the **gitversion/execute** task using the examples below.

> The examples use the latest _0.x_ version of the GitVersion Execute task. It is recommended to use the latest released version in your own pipelines.
Note that if the pipeline is setup to use a shallow git fetch mode the GitVersion Execute task will fail. It is required to use fetchDepth of 0 like so:

```yaml
- checkout: self
fetchDepth: 1
```
## Inputs
The Execute GitVersion task accepts the following inputs:
Expand Down

0 comments on commit d946235

Please sign in to comment.