@@ -6,8 +6,6 @@ parameters:
66 default :
77 - pwsh : |
88 Write-Error "No download step is provided"
9- - name : isCopilotGeneration
10- type : boolean
119
1210steps :
1311- template : set-user-config.yml
@@ -30,24 +28,21 @@ steps:
3028 fetchDepth : 1
3129 persistCredentials : true
3230 submodules : recursive
33- condition : ${{ eq(parameters.isCopilotGeneration, true) }}
3431
3532- pwsh : |
3633 md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
3734 md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
3835 Copy-Item -Path $(Build.SourcesDirectory)/Agents-M365Copilot/openapi/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/openapi.yaml
3936 Copy-Item -Path $(Build.SourcesDirectory)/Agents-M365Copilot/openapi/ccs-beta-review-openapi.yml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/openapi.yaml
4037 displayName : Move Custom CCS metadata to expected location
41- condition : ${{ eq(parameters.isCopilotGeneration, true) }}
42-
4338
4439- pwsh : |
4540 md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
4641 md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
4742 Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/v1.0/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/
4843 Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/beta/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/
4944 displayName : Move metadata to expected location
50- condition : and( or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true)), ${{ eq(parameters.isCopilotGeneration, false) }} )
45+ condition : or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))
5146
5247# if capture and clean step is not skipped
5348# then download the artifact from capture and clean steps
5954 downloadType : ' single'
6055 artifactName : ${{ parameters.cleanMetadataFolder }}
6156 downloadPath : ' $(Build.SourcesDirectory)/msgraph-metadata'
62- condition : and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false), ${{ eq(parameters.isCopilotGeneration, false) }} )
57+ condition : and(eq(variables.skipMetadataCaptureAndClean, false), eq(variables.skipOpenApiCaptureAndClean, false))
6358 displayName : Downloading metadata from artifacts
0 commit comments