Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/1081 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/master/eng/common/README.md#workflow)
33 lines
1.1 KiB
PowerShell
33 lines
1.1 KiB
PowerShell
$RepoRoot = Resolve-Path "${PSScriptRoot}..\..\..\.."
|
|
$EngDir = Join-Path $RepoRoot "eng"
|
|
$EngCommonDir = Join-Path $EngDir "common"
|
|
$EngCommonScriptsDir = Join-Path $EngCommonDir "scripts"
|
|
$EngScriptsDir = Join-Path $EngDir "scripts"
|
|
|
|
# Import required scripts
|
|
. (Join-Path $EngCommonScriptsDir SemVer.ps1)
|
|
. (Join-Path $EngCommonScriptsDir ChangeLog-Operations.ps1)
|
|
. (Join-Path $EngCommonScriptsDir Package-Properties.ps1)
|
|
. (Join-Path $EngCommonScriptsDir logging.ps1)
|
|
. (Join-Path $EngCommonScriptsDir Invoke-GitHubAPI.ps1)
|
|
|
|
# Setting expected from common languages settings
|
|
$Language = "Unknown"
|
|
$PackageRepository = "Unknown"
|
|
$packagePattern = "Unknown"
|
|
$MetadataUri = "Unknown"
|
|
|
|
# Import common language settings
|
|
$EngScriptsLanguageSettings = Join-path $EngScriptsDir "Language-Settings.ps1"
|
|
if (Test-Path $EngScriptsLanguageSettings) {
|
|
. $EngScriptsLanguageSettings
|
|
}
|
|
if (-not $LanguageShort)
|
|
{
|
|
$LangaugeShort = $Language
|
|
}
|
|
|
|
# Transformed Functions
|
|
$GetPackageInfoFromRepoFn = "Get-${Language}-PackageInfoFromRepo"
|
|
$GetPackageInfoFromPackageFileFn = "Get-${Language}-PackageInfoFromPackageFile"
|
|
$PublishGithubIODocsFn = "Publish-${Language}-GithubIODocs" |