Migrate SkipDefaultCheckout to SkipCheckoutNone (#3916)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
81b733689b
commit
737a09fad9
@ -81,7 +81,7 @@ steps:
|
||||
- ${{ if parameters.SparseCheckoutPaths }}:
|
||||
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
|
||||
parameters:
|
||||
SkipDefaultCheckout: true
|
||||
SkipCheckoutNone: true
|
||||
Repositories:
|
||||
- Name: ${{ parameters.TargetDocRepoOwner }}/${{ parameters.TargetDocRepoName }}
|
||||
WorkingDirectory: ${{ parameters.WorkingDirectory }}/repo
|
||||
|
||||
@ -8,13 +8,17 @@ parameters:
|
||||
- Name: $(Build.Repository.Name)
|
||||
Commitish: $(Build.SourceVersion)
|
||||
WorkingDirectory: $(System.DefaultWorkingDirectory)
|
||||
# NOTE: SkipDefaultCheckout is being deprecated in favor of SkipCheckoutNone
|
||||
- name: SkipDefaultCheckout
|
||||
type: boolean
|
||||
default: false
|
||||
- name: SkipCheckoutNone
|
||||
type: boolean
|
||||
default: false
|
||||
|
||||
steps:
|
||||
- ${{ if not(parameters.SkipDefaultCheckout) }}:
|
||||
- checkout: none
|
||||
- ${{ if and(not(parameters.SkipDefaultCheckout), not(parameters.SkipCheckoutNone)) }}:
|
||||
- checkout: none
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: 'Sparse checkout repositories'
|
||||
|
||||
@ -46,7 +46,7 @@ steps:
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/sparse-checkout.yml
|
||||
parameters:
|
||||
SkipDefaultCheckout: true
|
||||
SkipCheckoutNone: true
|
||||
Repositories:
|
||||
- Name: ${{ parameters.TargetDocRepoOwner }}/${{ parameters.TargetDocRepoName }}
|
||||
WorkingDirectory: $(DocRepoLocation)
|
||||
@ -76,7 +76,7 @@ steps:
|
||||
displayName: Checkout daily docs branch if it exists
|
||||
workingDirectory: $(DocRepoLocation)
|
||||
|
||||
# If NOT performing a daily docs build, set the $(TargetBranchName) to the
|
||||
# If NOT performing a daily docs build, set the $(TargetBranchName) to the
|
||||
# default branch of the documentation repository.
|
||||
- ${{ if ne(parameters.DailyDocsBuild, 'true') }}:
|
||||
- template: /eng/common/pipelines/templates/steps/set-default-branch.yml
|
||||
@ -103,7 +103,7 @@ steps:
|
||||
-PackageSourceOverride '${{ parameters.PackageSourceOverride }}' `
|
||||
-TenantId '$(opensource-aad-tenant-id)' `
|
||||
-ClientId '$(opensource-aad-app-id)' `
|
||||
-ClientSecret '$(opensource-aad-secret)'
|
||||
-ClientSecret '$(opensource-aad-secret)'
|
||||
displayName: Apply Documentation Updates
|
||||
|
||||
- template: /eng/common/pipelines/templates/steps/git-push-changes.yml
|
||||
|
||||
Loading…
Reference in New Issue
Block a user