Update script to support running on GH action (#6628)

Co-authored-by: Praveen Kuttappan <praveen.kuttappan@gmail.com>
This commit is contained in:
Azure SDK Bot 2025-06-13 15:28:25 -07:00 committed by GitHub
parent 7d47e89859
commit 1e96755976
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4,7 +4,7 @@ param(
[string]$FileName = 'Azure.Sdk.Tools.Cli',
[string]$Package = 'azsdk',
[string]$Version, # Default to latest
[string]$InstallDirectory = (Join-Path $HOME ".azure-sdk-mcp" "azsdk"),
[string]$InstallDirectory = '',
[string]$Repository = 'Azure/azure-sdk-tools',
[string]$RunDirectory = (Resolve-Path (Join-Path $PSScriptRoot .. .. ..)),
[switch]$Run,
@ -14,6 +14,11 @@ param(
$ErrorActionPreference = "Stop"
if (-not $InstallDirectory)
{
$homeDir = if ($env:HOME) { $env:HOME } else { $env:USERPROFILE }
$InstallDirectory = (Join-Path $homeDir ".azure-sdk-mcp" "azsdk")
}
. (Join-Path $PSScriptRoot '..' 'scripts' 'Helpers' 'AzSdkTool-Helpers.ps1')
if ($Clean) {