Skip to content

Commit

Permalink
Get more meaningful information into log
Browse files Browse the repository at this point in the history
  • Loading branch information
aholstrup1 committed Oct 22, 2024
1 parent 5bb4f65 commit bb69857
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Actions/Sign/Sign.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@ function Install-SigningTool() {
# Install the signing tool in the temp folder
Write-Host "Installing signing tool version $version in $tempFolder"
New-Item -ItemType Directory -Path $tempFolder | Out-Null
dotnet tool install sign --version $version --tool-path $tempFolder | Out-Null
$dotnetInstallOutput = dotnet tool install sign --version $version --tool-path $tempFolder
Write-Host $dotnetInstallOutput

# Return the path to the signing tool
$signingTool = Join-Path -Path $tempFolder "sign.exe" -Resolve
$signingTool = Join-Path -Path $tempFolder "sign.exe"
if (-not (Test-Path -Path $signingTool)) {
throw "Failed to install signing tool. If you are using a self-hosted runner, make sure the runner has .NET installed and nuget.org set up as a nuget source."
}
return $signingTool
}

Expand Down

0 comments on commit bb69857

Please sign in to comment.