Skip to content

Commit 2aa7627

Browse files
committed
Updated build check in Nightly builds
1 parent 0adfdef commit 2aa7627

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

build/Build-Nightly.ps1

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,31 +21,27 @@ if ($null -ne $pnpcoresdk_response) {
2121
}
2222
}
2323

24-
#Write-host "Latest PnP PowerShell Commit hash $pnppowershell_hash" -ForegroundColor Yellow
25-
#Write-Host "Stored PnP PowerShell Commit hash: $existing_pnppowershell_hash" -ForegroundColor Yellow
26-
#Write-host "Latest PnP Framework Commit hash $pnpframework_hash" -ForegroundColor Yellow
27-
#Write-Host "Stored PnP Framework Commit hash: $existing_pnpframework_hash" -ForegroundColor Yellow
28-
2924
if ($dependencies.PnPPowershell -ne $pnppowershell_hash) {
3025
Write-Host "PnP Powershell is newer"
31-
$dependencies.PnPPowershell = $pnppowershell_hash
3226
$runPublish = $true
3327
}
3428

3529
if ($runPublish -eq $false -and $dependencies.PnPFramework -ne $pnpframework_hash) {
3630
Write-Host "PnP Framework is newer"
37-
$dependencies.PnPFramework = $pnppowershell_hash
3831
$runPublish = $true
3932
}
4033

4134
if ($runPublish -eq $false -and $dependencies.PnPCore -ne $pnpcoresdk_hash) {
4235
Write-Host "PnP Core SDK is newer"
43-
$dependencies.PnPCore = $pnpcoresdk_hash
4436
$runPublish = $true
4537
}
4638

4739
if ($runPublish -eq $true) {
4840
$dependencies.Updated = Get-Date -Format "yyyyMMdd-HHmmss"
41+
$dependencies.PnPCore = $pnpcoresdk_hash
42+
$dependencies.PnPFramework = $pnppowershell_hash
43+
$dependencies.PnPPowershell = $pnppowershell_hash
44+
4945
Set-Content ./dependencies.json -Value $(ConvertTo-Json $dependencies) -Force
5046

5147
$versionFileContents = Get-Content "$PSScriptRoot/../version.json" -Raw | ConvertFrom-Json

0 commit comments

Comments
 (0)