Skip to content

Commit b296b9b

Browse files
committed
chore: switches to a parameter for endpoint cleanup
Signed-off-by: Vincent Biret <[email protected]>
1 parent 9dc84b1 commit b296b9b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.azure-pipelines/generation-templates/capture-metadata.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ parameters:
3131
- name: metadataAnnotationsCopyScriptPath
3232
type: string
3333
default: '$(metadataTypeSpecAnnotationsSource)/../scripts/copy-annotations-to-csdl.ps1'
34-
35-
variables:
36-
sanitizedEndpoint: $[replace(parameters['endpoint'], '/', ''))]
34+
- name: sanitizedEndpoint
35+
type: string
36+
default: $[replace(parameters['endpoint'], '/', ''))]
3737

3838
steps:
3939

@@ -99,7 +99,7 @@ steps:
9999
endpointVersion: ${{ parameters.endpoint }}
100100
displayName: 'run Typewriter to clean ${{ parameters.endpoint }} metadata'
101101

102-
- pwsh: '$(metadataAnnotationsCopyScriptPath) -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_$(sanitizedEndpoint)_metadata/cleanMetadataWithDescriptions${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
102+
- pwsh: '$(metadataAnnotationsCopyScriptPath) -targetCsdlPath "$(Build.SourcesDirectory)/msgraph-metadata/clean_${{ parameters.sanitizedEndpoint }}_metadata/cleanMetadataWithDescriptions${{ parameters.endpoint }}.xml" -sourceCsdlDirectoryPath "$(metadataTypeSpecAnnotationsSource)/$(metadataTypeSpecAnnotationsOutputDir)"'
103103

104104
## Only run if the previous step was successful
105105
- pwsh: '$(scriptsDirectory)/run-typewriter-clean-metadata.ps1'

0 commit comments

Comments
 (0)