mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 10:22:55 +00:00
Simplify check for PR - skip Nupkg
Tested locally, should be working correctly now
This commit is contained in:
@@ -218,9 +218,11 @@ function NugetPackageRestore
|
||||
|
||||
function Nupkg
|
||||
{
|
||||
if($SkipNugetForPr)
|
||||
if (Test-Path Env:\APPVEYOR_PULL_REQUEST_NUMBER)
|
||||
{
|
||||
return;
|
||||
Write-Diagnostic "Pr Number: $env:APPVEYOR_PULL_REQUEST_NUMBER"
|
||||
Write-Diagnostic "Skipping Nupkg"
|
||||
return
|
||||
}
|
||||
|
||||
$nuget = Join-Path $WorkingDir .\nuget\NuGet.exe
|
||||
@@ -266,17 +268,6 @@ function WriteAssemblyVersion
|
||||
$NewString | Set-Content $Filename -Encoding UTF8
|
||||
}
|
||||
|
||||
function CheckIfPrBuild()
|
||||
{
|
||||
if (Test-Path Env:\APPVEYOR_PULL_REQUEST_NUMBER)
|
||||
{
|
||||
Write-Diagnostic "Pr Number: $env:APPVEYOR_PULL_REQUEST_NUMBER"
|
||||
$SkipNugetForPr = $true
|
||||
}
|
||||
}
|
||||
|
||||
CheckIfPrBuild
|
||||
|
||||
DownloadNuget
|
||||
|
||||
NugetPackageRestore
|
||||
|
||||
Reference in New Issue
Block a user