-
-
Save doctordns/b1a06f7002675ec2bf8f710d3c066182 to your computer and use it in GitHub Desktop.
Get PS7 GitHub Meta data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function Get-PWSH7ReleaseInformation { | |
# Get details of overall PowerShell 7 information | |
$FR = 'https://raw.githubusercontent.com/' + | |
'PowerShell/PowerShell/master/tools/metadata.json' | |
$MetaFullRelease = Invoke-RestMethod $FR | |
# Get Details of latest preview | |
$MetaPreview = Invoke-RestMethod 'https://aka.ms/pwsh-buildinfo-Preview' | |
# Get Details of the latest daily build | |
$MetadataDaily = Invoke-RestMethod 'https://aka.ms/pwsh-buildinfo-daily' | |
# Display this information | |
'PowerShell 7 Status:' | |
$MetaFullRelease | |
'Preview information:' | |
$MetaPreview | |
'Daily Build information | |
$MetadataDaily | |
} | |
Get-PWSH7ReleaseInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks.