Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions eng/pipelines/template/steps/generate-releasenotes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ steps:
-ForkRepoOwner "Azure" -RepoName "azure-sdk" -BranchPrefix '${{ parameters.PrBranchName }}' -AuthToken $(azuresdk-github-pat)
displayName: Clean Up Stale Branches

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- pwsh: |
git clone https://github.com/Azure/azure-sdk.git $(AzureSDKReleaseNotesClonePath)
cd $(AzureSDKReleaseNotesClonePath)
git remote add azure-sdk-fork "https://$(azuresdk-github-pat)@github.com/azure-sdk/azure-sdk.git"
git remote add azure-sdk-fork "https://$(GH_TOKEN)@github.com/azure/azure-sdk.git"
displayName: Clone azure-sdk for release notes
condition: and(succeeded(), ne(variables['AzureSDKReleaseNotesClonePath'], variables['AzureSDKClonePath']))

Expand Down Expand Up @@ -101,7 +103,7 @@ steps:
-commonScriptPath $(AzureSDKToolsScriptsPath)
-releaseDirectory $(AzureSDKReleaseNotesClonePath)/_data/releases
-repoLanguage ${{ repo.value.Language }}
-github_pat '$(azuresdk-github-pat)'
-github_pat '$(GH_TOKEN)'

- template: eng/common/pipelines/templates/steps/create-pull-request.yml@azure-sdk-tools
parameters:
Expand Down
10 changes: 6 additions & 4 deletions eng/pipelines/version-updater.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,28 @@ steps:
pwsh: true
filePath: $(AzureSDKClonePath)/eng/scripts/Query-Azure-Packages.ps1

- template: /eng/common/pipelines/templates/steps/login-to-github.yml

- task: PowerShell@2
displayName: Update packages from sdk release data
inputs:
pwsh: true
filePath: $(AzureSDKClonePath)/eng/scripts/Update-Release-Versions.ps1
arguments: >
-github_pat '$(azuresdk-github-pat)'
-github_pat '$(GH_TOKEN)'

- task: PowerShell@2
displayName: Update release DevOps work-items
inputs:
pwsh: true
filePath: $(AzureSDKClonePath)/eng/scripts/Update-DevOps-WorkItems.ps1
arguments: >
-github_pat '$(azuresdk-github-pat)'
-github_pat '$(GH_TOKEN)'
-devops_pat '$(azuresdk-azure-sdk-devops-release-work-item-pat)'

- pwsh: |
# Some steps, like release notes, require this remote all the time so lets always setup even if there are no changes
git remote add azure-sdk-fork "https://$(azuresdk-github-pat)@github.com/azure-sdk/azure-sdk.git"
git remote add azure-sdk-fork "https://$(GH_TOKEN)@github.com/azure-sdk/azure-sdk.git"
displayName: Setup azure-sdk-fork remote
workingDirectory: $(AzureSDKClonePath)

Expand All @@ -68,7 +70,7 @@ steps:
- template: template/steps/generate-releasenotes.yml

- pwsh: |
git clone https://$(azuresdk-github-pat)@github.com/MicrosoftDocs/azure-dev-docs-pr $(System.DefaultWorkingDirectory)/azure-dev-docs-pr
git clone https://$(GH_TOKEN)@github.com/MicrosoftDocs/azure-dev-docs-pr $(System.DefaultWorkingDirectory)/azure-dev-docs-pr
displayName: Clone azure-dev-docs-pr repo

- task: PowerShell@2
Expand Down
Loading