Sync eng/common directory with azure-sdk-tools for PR 1552 (#2110)
This commit is contained in:
parent
5f7f4783bb
commit
c297b63b9b
@ -65,38 +65,3 @@ steps:
|
||||
TargetRepoOwner: ${{ parameters.TargetDocRepoOwner }}
|
||||
WorkingDirectory: ${{ parameters.WorkingDirectory }}/repo
|
||||
ScriptDirectory: ${{ parameters.WorkingDirectory }}/${{ parameters.ScriptDirectory }}
|
||||
|
||||
- ${{if ne( parameters['OnboardingBranch'], '')}}:
|
||||
- pwsh: |
|
||||
Push-Location ${{ parameters.WorkingDirectory }}/repo
|
||||
git reset --hard HEAD
|
||||
git remote rm azure-sdk-fork
|
||||
git checkout ${{ parameters.OnboardingBranch}}
|
||||
displayName: Reset Docs Repo, Checkout Onboarding Branch
|
||||
ignoreLASTEXITCODE: false
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Update Docs.MS CI Targeted Packages'
|
||||
inputs:
|
||||
targetType: filePath
|
||||
filePath: ${{ parameters.ScriptDirectory }}/update-docs-ci.ps1
|
||||
arguments: >
|
||||
-ArtifactLocation ${{ parameters.ArtifactLocation }}
|
||||
-WorkDirectory "${{ parameters.WorkingDirectory }}"
|
||||
-RepoId ${{ parameters.RepoId }}
|
||||
-Repository ${{ parameters.PackageRepository }}
|
||||
-ReleaseSHA ${{ parameters.ReleaseSha }}
|
||||
-DocRepoLocation "${{ parameters.WorkingDirectory }}/repo"
|
||||
-Configs "${{ parameters.CIConfigs }}"
|
||||
pwsh: true
|
||||
env:
|
||||
GH_TOKEN: $(azuresdk-github-pat)
|
||||
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
|
||||
parameters:
|
||||
BaseRepoBranch: ${{ parameters.OnboardingBranch}}
|
||||
BaseRepoOwner: ${{ parameters.TargetDocRepoOwner }}
|
||||
CommitMsg: "Update docs metadata and targeting for release of ${{ parameters.ArtifactName }}"
|
||||
TargetRepoName: ${{ parameters.TargetDocRepoName }}
|
||||
TargetRepoOwner: ${{ parameters.TargetDocRepoOwner }}
|
||||
WorkingDirectory: ${{ parameters.WorkingDirectory }}/repo
|
||||
ScriptDirectory: ${{ parameters.WorkingDirectory }}/${{ parameters.ScriptDirectory }}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user