mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
Revert "Another mop up commit to add missing changes from the last mop-up."
This reverts commit 1dcd276b1e.
This commit is contained in:
@@ -1,44 +1,44 @@
|
||||
################################################################################
|
||||
## File: Validate-ServiceFabricSDK.ps1
|
||||
## Desc: Validate ServiceFabricSDK
|
||||
################################################################################
|
||||
|
||||
$modules = Get-Module -Name ServiceFabric -ListAvailable
|
||||
|
||||
if(($modules | Measure-Object).Count -gt 0)
|
||||
{
|
||||
$modules
|
||||
}
|
||||
else {
|
||||
Write-Host "ServiceFabric Module is not present, it might not be installed"
|
||||
throw "ServiceFabric Module is not present, it might not be installed"
|
||||
}
|
||||
|
||||
|
||||
function Get-ServiceFabricSDKVersion
|
||||
{
|
||||
$regKey = "HKLM:\Software\Microsoft\Service Fabric SDK"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$Version = (Get-ItemProperty -Path $regKey).FabricSDKVersion
|
||||
return $Version
|
||||
}
|
||||
|
||||
|
||||
function Get-ServiceFabricVersion
|
||||
{
|
||||
$regKey = "HKLM:\Software\Microsoft\Service Fabric"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$Version = (Get-ItemProperty -Path $regKey).FabricVersion
|
||||
return $Version
|
||||
}
|
||||
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Azure Service Fabric"
|
||||
|
||||
$Description = @"
|
||||
_SDK Version:_ $(Get-ServiceFabricSDKVersion)<br/>
|
||||
_Runtime Version:_ $(Get-ServiceFabricVersion)
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
################################################################################
|
||||
## File: Validate-ServiceFabricSDK.ps1
|
||||
## Desc: Validate ServiceFabricSDK
|
||||
################################################################################
|
||||
|
||||
$modules = Get-Module -Name ServiceFabric -ListAvailable
|
||||
|
||||
if(($modules | Measure-Object).Count -gt 0)
|
||||
{
|
||||
$modules
|
||||
}
|
||||
else {
|
||||
Write-Host "ServiceFabric Module is not present, it might not be installed"
|
||||
throw "ServiceFabric Module is not present, it might not be installed"
|
||||
}
|
||||
|
||||
|
||||
function Get-ServiceFabricSDKVersion
|
||||
{
|
||||
$regKey = "HKLM:\Software\Microsoft\Service Fabric SDK"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$Version = (Get-ItemProperty -Path $regKey).FabricSDKVersion
|
||||
return $Version
|
||||
}
|
||||
|
||||
|
||||
function Get-ServiceFabricVersion
|
||||
{
|
||||
$regKey = "HKLM:\Software\Microsoft\Service Fabric"
|
||||
$installedApplications = Get-ItemProperty -Path $regKey
|
||||
$Version = (Get-ItemProperty -Path $regKey).FabricVersion
|
||||
return $Version
|
||||
}
|
||||
|
||||
|
||||
# Adding description of the software to Markdown
|
||||
$SoftwareName = "Azure Service Fabric"
|
||||
|
||||
$Description = @"
|
||||
_SDK Version:_ $(Get-ServiceFabricSDKVersion)<br/>
|
||||
_Runtime Version:_ $(Get-ServiceFabricVersion)
|
||||
"@
|
||||
|
||||
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description
|
||||
|
||||
Reference in New Issue
Block a user