File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,24 +32,21 @@ jobs:
3232 value : ' Swagger ApiDocPreview'
3333
3434 steps :
35- - checkout : self
36- # Fetch depth required to get list of changed files
37- fetchDepth : 2
38-
39- - template : /eng/common/pipelines/templates/steps/login-to-github.yml
40-
4135 - template : /eng/pipelines/templates/steps/set-sha-check.yml
4236 parameters :
4337 State : pending
4438 TargetUrl : $(CurrentBuildUrl)
4539 Description : ' Starting docs build'
4640 Context : $(StatusName)
47- GitHubToken : $(GH_TOKEN)
41+
42+ - checkout : self
43+ # Fetch depth required to get list of changed files
44+ fetchDepth : 2
4845
4946 - template : /eng/common/pipelines/templates/steps/sparse-checkout.yml
5047 parameters :
5148 SkipCheckoutNone : true
52- TokenToUseForAuth : $(GH_TOKEN )
49+ TokenToUseForAuth : $(azuresdk-github-pat )
5350 # Path does not need to be set because sparse-checkout.yml already
5451 # checks out files in the repo root
5552 Repositories :
Original file line number Diff line number Diff line change @@ -42,12 +42,9 @@ parameters:
4242
4343 - name : GitHubToken
4444 type : string
45- default : ' '
45+ default : $(azuresdk-github-pat)
4646
4747steps :
48- - ${{ if eq(parameters.GitHubToken, '') }} :
49- - template : /eng/common/pipelines/templates/steps/login-to-github.yml
50-
5148 - bash : |
5249 echo "Repository Name: ${{ parameters.RepositoryName }}"
5350 echo "Commit ID: ${{ parameters.Sha }}"
6461 displayName: ${{ parameters.DisplayName }}
6562 condition: ${{ parameters.Condition }}
6663 env:
67- GH_TOKEN: $(GH_TOKEN)
64+ GH_TOKEN: ${{ parameters.GitHubToken }}
You can’t perform that action at this time.
0 commit comments