mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* Add AWS SAM * Change utility name to upper case Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
27 lines
643 B
PowerShell
27 lines
643 B
PowerShell
################################################################################
|
|
## File: Validate-AWS-SAM.ps1
|
|
## Desc: Validate aws sam cli
|
|
################################################################################
|
|
|
|
$command = Get-Command -Name 'sam'
|
|
|
|
if ($command)
|
|
{
|
|
Write-Host "AWS SAM CLI on path"
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'AWS SAM CLI is not on path'
|
|
exit 1
|
|
}
|
|
|
|
# Adding description of the software to Markdown
|
|
$SoftwareName = "AWS SAM CLI"
|
|
|
|
$version = (sam --version).Split(" ")[3]
|
|
|
|
$Description = @"
|
|
_Version:_ $version<br/>
|
|
"@
|
|
|
|
Add-SoftwareDetailsToMarkdown -SoftwareName $SoftwareName -DescriptionMarkdown $Description |