Only evaluate version using GitVersion if GitVersion.yml exist in repository
- Dominant language
- PowerShell
- Stars
- 243
- Forks
- 46
- Avg merge
- 1h 41m
- Merged PRs (30d)
- 1
Description
### Problem description
It is possible to not add configuration files for GitVersion when creating a module using the templates. But if GitVersion is installed it will be used regardless.
### Verbose logs
```text
n/a
```
### How to reproduce
Created a module using a template and skip adding GItVersion configuration.
### Expected behavior
Not to use GitVersion if configuration is not available.
### Current behavior
Always uses GitVersion if installed.
### Suggested solution
Maybe we could make it so that the task only tries GitVersion if the file `Gitversion.yml` is present.
### Operating system the target node is running
```text
n/a
```
### PowerShell version and build the target node is running
```text
n/a
```
### Module version used
```text
v0.112.1-preview00xx
```
Contributor guide
Assessment
This issue has not been assessed yet.