File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -10,21 +10,24 @@ jobs:
10
10
- job : UpdateJson
11
11
displayName : Update fabricbot.json
12
12
steps :
13
- - task : AzureKeyVault@2
13
+ - task : AzurePowerShell@5
14
14
inputs :
15
15
azureSubscription : ' Azure SDK Infrastructure'
16
- KeyVaultName : ' $(KeyVaultName)'
17
- SecretsFilter : ' $(ADOTokenName)'
18
- RunAsPreJob : false
16
+ ScriptType : ' InlineScript'
17
+ Inline : |
18
+ $ADOTokenValue = Get-AzKeyVaultSecret -VaultName ${env:KEYVAULTNAME} -Name ${env:ADOTOKENNAME} -AsPlainText
19
+ Write-Host "##vso[task.setvariable variable=ADOToken;issecret=true]$ADOTokenValue"
20
+ azurePowerShellVersion : ' LatestVersion'
21
+ displayName : Get ADOToken from Key Vault
19
22
20
23
- pwsh : |
21
- ./tools/Github/ParseUncyclo2Json.ps1 -ADOToken $("$(ADOTokenName)" )
24
+ ./tools/Github/ParseUncyclo2Json.ps1 -ADOToken $(ADOToken )
22
25
displayName: Update fabricbot.json file locally
23
-
26
+
24
27
- pwsh : |
25
28
$gitStatus = git status -s
26
29
if (-not $gitStatus) {
27
- Write-Host "The wiki has no changes ."
30
+ Write-Host "The wiki has no changes."
28
31
Write-Host "##vso[task.setvariable variable=ChangesDetected]false"
29
32
} else {
30
33
Write-Host "There are changes in the repository."
You can’t perform that action at this time.
0 commit comments