@@ -14,34 +14,40 @@ jobs:
1414 CadlEmitterVersion : $[stageDependencies.Build_and_Test.Build.outputs['Publish.CadlEmitterVersion']]
1515 dependsOn : Update_Generator_Versions
1616 steps :
17- - checkout : self
18- fetchDepth : 1
19- - checkout : azure-sdk-for-net
20- - checkout : azure-sdk-tools
21- fetchDepth : 1
22- - task : UseDotNet@2
23- displayName : ' Use .NET Core SDK'
24- inputs :
25- useGlobalJson : true
26- performMultiLevelLookup : true
27- - task : Powershell@2
28- displayName : Update SDK samples ${{ parameters.filter }}
29- inputs :
30- pwsh : true
31- filePath : $(Build.SourcesDirectory)/autorest.csharp/eng/UpdateAzureSdkSamples.ps1
32- arguments : >
33- -SdkRepoRoot $(Build.SourcesDirectory)/azure-sdk-for-net
34- -ServiceDirectoryFilters ${{ parameters.filter}}
35- -ShowSummary
36- failOnStderr : false
37- workingDirectory : $(Build.SourcesDirectory)/autorest.csharp
38- retryCountOnTaskFailure : 3
39- - template : /eng/common/pipelines/templates/steps/git-push-changes.yml@azure-sdk-tools
40- parameters :
41- BaseRepoBranch : auto-update-autorest-$(AutorestCSharpVersion)
42- BaseRepoOwner : azure-sdk
43- CommitMsg : Update SDK samples ${{ parameters.filter }}
44- TargetRepoOwner : Azure
45- TargetRepoName : azure-sdk-for-net
46- WorkingDirectory : $(Build.SourcesDirectory)/azure-sdk-for-net
47- ScriptDirectory : $(Build.SourcesDirectory)/azure-sdk-tools/eng/common/scripts
17+ - checkout : self
18+ fetchDepth : 1
19+ - checkout : azure-sdk-for-net
20+ - checkout : azure-sdk-tools
21+ fetchDepth : 1
22+ - task : UseDotNet@2
23+ displayName : ' Use .NET Core SDK'
24+ inputs :
25+ useGlobalJson : true
26+ performMultiLevelLookup : true
27+ - task : Powershell@2
28+ displayName : Update SDK samples ${{ parameters.filter }}
29+ inputs :
30+ pwsh : true
31+ filePath : $(Build.SourcesDirectory)/autorest.csharp/eng/UpdateAzureSdkSamplesForNet.ps1
32+ arguments : >
33+ -AutorestCSharpVersion $(AutorestCSharpVersion)
34+ -CadlEmitterVersion $(CadlEmitterVersion)
35+ -SdkRepoRoot $(Build.SourcesDirectory)/azure-sdk-for-net
36+ -ServiceDirectoryFilters ${{ parameters.filter}}
37+ -ShowSummary
38+ failOnStderr : false
39+ workingDirectory : $(Build.SourcesDirectory)/autorest.csharp
40+ retryCountOnTaskFailure : 3
41+ - pwsh : |
42+ git restore eng/Packages.Data.props
43+ git restore eng/emitter-package.json
44+ workingDirectory: $(Build.SourcesDirectory)/azure-sdk-for-net
45+ - template : /eng/common/pipelines/templates/steps/git-push-changes.yml@azure-sdk-tools
46+ parameters :
47+ BaseRepoBranch : auto-update-autorest-$(AutorestCSharpVersion)
48+ BaseRepoOwner : azure-sdk
49+ CommitMsg : Update SDK samples ${{ parameters.filter }}
50+ TargetRepoOwner : Azure
51+ TargetRepoName : azure-sdk-for-net
52+ WorkingDirectory : $(Build.SourcesDirectory)/azure-sdk-for-net
53+ ScriptDirectory : $(Build.SourcesDirectory)/azure-sdk-tools/eng/common/scripts
0 commit comments