diff --git a/eng/common/pipelines/templates/jobs/docindex.yml b/eng/common/pipelines/templates/jobs/docindex.yml index 077d07ad16de..6eb6f4c6958e 100644 --- a/eng/common/pipelines/templates/jobs/docindex.yml +++ b/eng/common/pipelines/templates/jobs/docindex.yml @@ -16,6 +16,8 @@ jobs: workingDirectory: $(Build.BinariesDirectory) displayName: Download and Extract DocFX + - template: /eng/common/pipelines/templates/steps/login-to-github.yml + - task: AzureCLI@2 displayName: 'Generate Doc Index' inputs: @@ -66,5 +68,5 @@ jobs: arguments: > -PRBranchName "gh-pages" -CommitMsg "Auto-generated docs from SHA(s) $(Build.SourceVersion)" - -GitUrl "https://$(azuresdk-github-pat)@github.com/$(Build.Repository.Name).git" + -GitUrl "https://x-access-token:$(GH_TOKEN)@github.com/$(Build.Repository.Name).git" -PushArgs "--force" \ No newline at end of file