Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSOE-566: Fixing that the publish-nuget workflow doesn't fail when a package build has an error #222

Merged
merged 8 commits into from
Mar 31, 2023
8 changes: 7 additions & 1 deletion .github/actions/publish-nuget/New-NuGetPackage.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<#
<#
.SYNOPSIS
Creates a NuGet package from each project in the sln file in the current directory.
.DESCRIPTION
Expand Down Expand Up @@ -32,5 +32,11 @@ foreach ($project in $projects)
dotnet pack $project @Arguments
}

if ($LASTEXITCODE -ne 0)
{
Write-Output "::error::dotnet pack failed for the project $($project.FullName)."
exit 1
}

Pop-Location
}