-
Notifications
You must be signed in to change notification settings - Fork 76
Expand file tree
/
Copy pathset-up-for-generation-kiota.yml
More file actions
28 lines (24 loc) · 1.25 KB
/
set-up-for-generation-kiota.yml
File metadata and controls
28 lines (24 loc) · 1.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
parameters:
- name: cleanMetadataFolder
type: string
steps:
- template: /.azure-pipelines/generation-templates/set-user-config.yml@self
- template: /.azure-pipelines/generation-templates/use-dotnet-sdk.yml@self
parameters:
version: "10.x"
- pwsh: chmod +x "$(kiotaDirectory)/kiota"
displayName: 'Make Kiota executable'
# checkout metadata repo if capture and clean step is skipped
- checkout: msgraph-metadata
displayName: checkout metadata
fetchDepth: 1
persistCredentials: true
submodules: recursive
condition: or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))
- pwsh: |
md $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi
md $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi
Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/v1.0/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_v10_openapi/
Move-Item -Path $(Build.SourcesDirectory)/msgraph-metadata/openapi/beta/openapi.yaml -Destination $(Build.SourcesDirectory)/msgraph-metadata/clean_beta_openapi/
displayName: Move metadata to expected location
condition: or(eq(variables.skipMetadataCaptureAndClean, true), eq(variables.skipOpenApiCaptureAndClean, true))