-
Notifications
You must be signed in to change notification settings - Fork 0
Closed as not planned
Description
github action logs:
$tagVersion = "refs/heads/main".substring(11)
if ( "schedule" -eq "schedule" -or "schedule" -eq "push" ) {
$tagVersion = & git describe --tags --abbrev=0
# Remove 'v' or 'V' prefix if present for NuGet version compatibility
if ($tagVersion.StartsWith("v") -or $tagVersion.StartsWith("V")) {
$tagVersion = $tagVersion.Substring(1)
}
$tagVersion = "$tagVersion-457"
}
echo "TAG_VERSION=$tagVersion" >> $env:GITHUB_OUTPUT
dotnet nuget push BenjaminMichaelis.Dotnet.Templates.$tagVersion.nupkg --source https://api.nuget.org/v[3](https://github.com/BenjaminMichaelis/DotnetTemplates/actions/runs/15582077750/job/43879591138#step:3:3)/index.json --api-key *** --skip-duplicate
shell: /usr/bin/pwsh -command ". '{0}'"
fatal: not a git repository (or any of the parent directories): .git
InvalidOperation: /home/runner/work/_temp/b2f8a25d-671c-[4](https://github.com/BenjaminMichaelis/DotnetTemplates/actions/runs/15582077750/job/43879591138#step:3:4)f4a-ab81-a46a04abbc1d.ps1:6
Line |
6 | if ($tagVersion.StartsWith("v") -or $tagVersion.StartsWith("V")) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| You cannot call a method on a null-valued expression.
Error: Process completed with exit code 1.
Copilot
Metadata
Metadata
Assignees
Labels
No labels