Add a skip API validation for forks (#512)

* Add a skip validation for forks

* Fix var packageFeed
This commit is contained in:
BruceHaley 2022-08-02 12:07:34 -07:00 коммит произвёл GitHub
Родитель 915d0a216a
Коммит c0499cf822
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -132,11 +132,13 @@ stages:
- stage: API_Compatibility_Validation
dependsOn: Build
condition: and(succeeded(), ne(variables['DisableApiCompatibityValidation'], 'true'))
# Skip API validation against Azure for a fork, as forks do not have access to our private feed.
condition: and(succeeded(), or(ne(variables['System.PullRequest.IsFork'], 'True'), eq('${{ parameters.packageFeed }}', 'NuGet')))
variables:
skipComponentGovernanceDetection: true # the task is already injected into the build job, so skip it here.
jobs:
- job: generate_multiconfig_var
condition: and(succeeded(), ne(variables['System.PullRequest.IsFork'], 'True'))
steps:
- checkout: none
@ -155,6 +157,7 @@ stages:
tags: |
Comparing API against v $(GetContract.ContractVersion)
From ${{ parameters.packageFeed }} feed
continueOnError: true
- powershell: |
$multiconfig = '{';