diff --git a/.azure-pipelines/sync-aliases.yml b/.azure-pipelines/sync-aliases.yml index 3a23dc628122..09d95f597a5b 100644 --- a/.azure-pipelines/sync-aliases.yml +++ b/.azure-pipelines/sync-aliases.yml @@ -14,20 +14,17 @@ jobs: ./tools/Github/ParseWiki2Json.ps1 -ADOToken $(ADOToken) displayName: Update fabricbot.json file locally - - task: PowerShell@2 - displayName: Git commit and push - inputs: - targetType: inline - script: | - git config --global user.email "65331932+azure-powershell-bot@users.noreply.github.com" - git config --global user.name "azure-powershell-bot" - git checkout -b "internal/sync-fabricbot-json" + - pwsh: | + git config --global user.email "65331932+azure-powershell-bot@users.noreply.github.com" + git config --global user.name "azure-powershell-bot" + git checkout -b "internal/sync-fabricbot-json" - git add . - git commit -m "Sync fabricbot.json" + git add . + git commit -m "Sync fabricbot.json" - git remote set-url origin https://$(BotAccessToken)@github.com/Azure/azure-powershell.git; - git push origin internal/sync-fabricbot-json --force + git remote set-url origin https://azure-powershell-bot:$(BotAccessToken)@github.com/Azure/azure-powershell.git; + git push origin internal/sync-fabricbot-json --force + displayName: Git commit and push - pwsh: | $Title = "Sync fabricbot.json According To ADO Wiki Page"