Skip to content

Commit 44bc5d1

Browse files
authored
Update sync-alias pipeline (#23168)
1 parent 2d6c633 commit 44bc5d1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.azure-pipelines/sync-aliases.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
inputs:
1818
packageType: sdk
1919
version: 7.0.x
20+
- template: util/get-github-pat-steps.yml
2021

2122
- pwsh: |
2223
dotnet --version
@@ -57,7 +58,7 @@ jobs:
5758
git add .github/policies
5859
git commit -m "Sync resourceManagement.yml"
5960
60-
git remote set-url origin https://azure-powershell-bot:$(BotAccessToken)@github.com/Azure/azure-powershell.git;
61+
git remote set-url origin https://azure-powershell-bot:$(GithubToken)@github.com/Azure/azure-powershell.git;
6162
git push origin internal/sync-resourcemanagement-yml --force
6263
displayName: Git commit and push
6364
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))
@@ -67,6 +68,6 @@ jobs:
6768
$HeadBranch = "internal/sync-resourcemanagement-yml"
6869
$BaseBranch = "main"
6970
$Description = "This PR synchronizes the task: 'Triage issues to the service team' part of resourceManagement.yml from table of Service Contact List in ADO wiki page"
70-
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(BotAccessToken) -Description $Description
71+
./tools/Github/CreatePR.ps1 -Title $Title -HeadBranch $HeadBranch -BaseBranch $BaseBranch -BotAccessToken $(GithubToken) -Description $Description
7172
displayName: Create PR to main branch
7273
condition: and(succeeded(), eq(variables['ChangesDetected'], 'true'))

0 commit comments

Comments
 (0)