@@ -154,9 +154,19 @@ extends:
154154 inputs :
155155 sourceFolder : ' $(Build.ArtifactStagingDirectory)/tmp_lib'
156156 contents : ' **/*'
157- targetFolder : ' $(Build.SourcesDirectory)/typespec-msgraph/packages/typespec-reference-library /lib'
157+ targetFolder : ' $(Build.SourcesDirectory)/typespec-msgraph/packages/typespec-msgraph-reference /lib'
158158 overwrite : true
159159 displayName : Copy OpenAPI files to local typespec-msgraph repo
160+ - pwsh : |
161+ $manifestPath = "$(Build.SourcesDirectory)/typespec-msgraph/packages/typespec-msgraph-reference/lib/_manifest"
162+ if (Test-Path $manifestPath) {
163+ Write-Host "Deleting _manifest folder: $manifestPath" -ForegroundColor Yellow
164+ Remove-Item -Path $manifestPath -Recurse -Force
165+ Write-Host "_manifest folder deleted successfully" -ForegroundColor Green
166+ } else {
167+ Write-Host "_manifest folder not found, skipping deletion" -ForegroundColor Cyan
168+ }
169+ displayName: 'Delete _manifest folder'
160170 # Push changes to Typespec msgraph repo
161171 - pwsh : ' $(Build.SourcesDirectory)/msgraph-metadata/.azure-pipelines/scripts/git-push-reference-files.ps1'
162172 displayName : Publish new generated files to msgraph-metadata repo
@@ -184,5 +194,5 @@ extends:
184194 RepoName : ' microsoftgraph/typespec-msgraph'
185195 scriptDir : $(Build.SourcesDirectory)\msgraph-metadata\.azure-pipelines\scripts
186196 # Adding date as Version to keep up with the schema sync PRs.
187- Date : ' $( Date:yyyyMMdd) '
197+ Date : $(Get- Date -Format "yyyy-MM-dd")
188198 workingDirectory : ' $(Build.SourcesDirectory)/typespec-msgraph'
0 commit comments