mirror of
https://github.com/microsoft/mcp.git
synced 2026-11-04 12:01:31 +00:00
Sync eng/common directory with azure-sdk-tools for PR 17035 (#3684)
This commit is contained in:
1 parent
98984bfde6
commit
585757c506
2 files changed
+19
-2
No files matched your search
@@ -16,10 +16,14 @@ parameters:
|
||||
default: false
|
||||
- name: ScriptDirectory
|
||||
default: eng/common/scripts
|
||||
- name: Condition
|
||||
type: string
|
||||
default: succeeded()
|
||||
|
||||
steps:
|
||||
- task: AzureCLI@2
|
||||
displayName: "Login to GitHub"
|
||||
condition: ${{ parameters.Condition }}
|
||||
inputs:
|
||||
azureSubscription: 'AzureSDKEngKeyVault Secrets'
|
||||
scriptType: pscore
|
||||
|
||||
@@ -8,8 +8,21 @@ parameters:
|
||||
- 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
|
||||
@@ -21,5 +34,5 @@ steps:
|
||||
workingDirectory: $(Pipeline.Workspace)
|
||||
displayName: Verify REST API spec location for "${{ parameters.PackageName }}"
|
||||
env:
|
||||
GH_TOKEN: $(azuresdk-github-pat)
|
||||
condition: and(succeededOrFailed(), ne(variables['Skip.Verify-RestApiSpecLocation'], 'true'))
|
||||
GH_TOKEN: ${{ coalesce(parameters.AuthToken, '$(GH_TOKEN)') }}
|
||||
condition: ${{ parameters.Condition }}
|
||||
Reference in new issue
Block a user