зеркало из https://github.com/microsoft/kiota.git
- fixes environment variables setup for GHA
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
This commit is contained in:
Родитель
b02b276119
Коммит
f77d2bd01d
|
@ -19,8 +19,8 @@ if ($currentBranch -eq $previewBranch) {
|
|||
$versionSuffix = $versionSuffix.Substring(1)
|
||||
}
|
||||
if ($isGHA -eq $true) {
|
||||
Write-Output "::set-output name=versionSuffix::${versionSuffix}"
|
||||
Write-Output "::set-output name=isPrerelease::true"
|
||||
Write-Output "versionSuffix=$versionSuffix" >> $Env:GITHUB_OUTPUT
|
||||
Write-Output "isPrerelease=true" >> $Env:GITHUB_OUTPUT
|
||||
}
|
||||
else {
|
||||
Write-Host "##vso[task.setvariable variable=versionSuffix]$versionSuffix"
|
||||
|
@ -30,8 +30,8 @@ if ($currentBranch -eq $previewBranch) {
|
|||
}
|
||||
else {
|
||||
if ($isGHA -eq $true) {
|
||||
Write-Output "::set-output name=versionSuffix::"
|
||||
Write-Output "::set-output name=isPrerelease::false"
|
||||
Write-Output "versionSuffix=" >> $Env:GITHUB_OUTPUT
|
||||
Write-Output "isPrerelease=false" >> $Env:GITHUB_OUTPUT
|
||||
}
|
||||
else {
|
||||
Write-Host "##vso[task.setvariable variable=versionSuffix]"
|
||||
|
|
|
@ -9,7 +9,7 @@ $xml = [Xml] (Get-Content $csprojPath)
|
|||
$version = $xml.Project.PropertyGroup.VersionPrefix[0]
|
||||
Write-Output "csproj version is $version"
|
||||
if ($isGHA -eq $true) {
|
||||
Write-Output "::set-output name=version::${version}"
|
||||
Write-Output "version=$version" >> $Env:GITHUB_OUTPUT
|
||||
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче