try get variable properly

This commit is contained in:
Tian Liao 2024-03-15 14:39:21 +08:00
commit 3ade794f66

View file

@ -41,7 +41,8 @@ jobs:
$configPath = "$(Build.SourcesDirectory)\Tools\Build\Signing\ESRP-auth.json" $configPath = "$(Build.SourcesDirectory)\Tools\Build\Signing\ESRP-auth.json"
$auth = Get-Content -Raw $configPath | ConvertFrom-Json $auth = Get-Content -Raw $configPath | ConvertFrom-Json
$sbomKeyCode = $auth._ExtraContext.SbomKeyCode $sbomKeyCode = $auth._ExtraContext.SbomKeyCode
echo "##vso[task.setvariable variable=keyCode; isOutput=true]$sbomKeyCode" echo $sbomKeyCode
echo "##vso[task.setvariable variable=keyCode]$sbomKeyCode"
displayName: Get SBOM Key Code displayName: Get SBOM Key Code
name: getSbomKeyCode name: getSbomKeyCode