mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
39 lines
1.1 KiB
YAML
39 lines
1.1 KiB
YAML
parameters:
|
|
- name: ServiceDirectory
|
|
type: string
|
|
default: ''
|
|
- name: PackageName
|
|
type: string
|
|
default: ''
|
|
- name: ArtifactLocation
|
|
type: string
|
|
default: ''
|
|
- name: AuthToken
|
|
type: string
|
|
default: ''
|
|
- name: Condition
|
|
type: string
|
|
default: and(succeededOrFailed(), ne(variables['Skip.Verify-RestApiSpecLocation'], 'true'))
|
|
|
|
steps:
|
|
- ${{ if eq(parameters.AuthToken, '') }}:
|
|
- template: /eng/common/pipelines/templates/steps/login-to-github.yml
|
|
parameters:
|
|
TokenOwners:
|
|
- Azure
|
|
Condition: ${{ parameters.Condition }}
|
|
|
|
- task: Powershell@2
|
|
inputs:
|
|
filePath: $(Build.SourcesDirectory)/eng/common/scripts/Verify-RestApiSpecLocation.ps1
|
|
arguments: >
|
|
-ServiceDirectory "${{ parameters.ServiceDirectory }}"
|
|
-PackageName "${{ parameters.PackageName }}"
|
|
-ArtifactLocation: "${{ parameters.ArtifactLocation }}"
|
|
pwsh: true
|
|
workingDirectory: $(Pipeline.Workspace)
|
|
displayName: Verify REST API spec location for "${{ parameters.PackageName }}"
|
|
env:
|
|
GH_TOKEN: ${{ coalesce(parameters.AuthToken, '$(GH_TOKEN)') }}
|
|
condition: ${{ parameters.Condition }}
|