Prerequisites
GitVersion package
GitHub Actions
What are you seeing?
After this change #1070 GitVersion GH action started to fail.
I assume git command is missing the working directory info there.
What is expected?
I expect it not to fail
Steps to Reproduce
- Checkout code using checkout@v4 action
- Use GitVersion setup action
- Use GitVersion execute action
Output log or link to your CI build (if appropriate).
Run gittools/actions/gitversion/execute@v0
with:
targetPath: /home/runner/work/MyRepo/MyRepo/repo
useConfigFile: true
configFilePath: /home/runner/work/MyRepo/MyRepo/repo/build/GitVersion.yml
disableCache: false
disableNormalization: false
updateAssemblyInfo: false
env:
DOTNET_ROOT: /usr/share/dotnet
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
Agent: 'GitHub Actions'
Command: git rev-parse --is-shallow-repository
/usr/bin/git rev-parse --is-shallow-repository
fatal: not a git repository (or any of the parent directories): .git
Error: Error: The process '/usr/bin/git' failed with exit code 128
Prerequisites
GitVersion package
GitHub Actions
What are you seeing?
After this change #1070 GitVersion GH action started to fail.
I assume git command is missing the working directory info there.
What is expected?
I expect it not to fail
Steps to Reproduce
Output log or link to your CI build (if appropriate).
Run gittools/actions/gitversion/execute@v0 with: targetPath: /home/runner/work/MyRepo/MyRepo/repo useConfigFile: true configFilePath: /home/runner/work/MyRepo/MyRepo/repo/build/GitVersion.yml disableCache: false disableNormalization: false updateAssemblyInfo: false env: DOTNET_ROOT: /usr/share/dotnet DOTNET_CLI_TELEMETRY_OPTOUT: true DOTNET_NOLOGO: true Agent: 'GitHub Actions' Command: git rev-parse --is-shallow-repository /usr/bin/git rev-parse --is-shallow-repository fatal: not a git repository (or any of the parent directories): .git Error: Error: The process '/usr/bin/git' failed with exit code 128