Don't try sign on forks (#1992)
This commit is contained in:
Родитель
50101793f8
Коммит
8945b81412
|
@ -492,7 +492,7 @@ stages:
|
|||
artifactName: api-diff
|
||||
pathToPublish: '$(Build.SourcesDirectory)\output\api-diff'
|
||||
|
||||
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true')) }}:
|
||||
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true'), ne(variables['System.PullRequest.IsFork'], 'true')) }}:
|
||||
- stage: signing
|
||||
displayName: Sign NuGets
|
||||
dependsOn: package
|
||||
|
@ -504,7 +504,7 @@ stages:
|
|||
${{ if not(or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), startsWith(variables['Build.SourceBranch'], 'refs/heads/patch/'))) }}:
|
||||
signType: 'Test'
|
||||
|
||||
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true')) }}:
|
||||
- ${{ if and(eq(variables['System.TeamProject'], 'devdiv'), eq(parameters.isBuildPipeline, 'true'), ne(variables['System.PullRequest.IsFork'], 'true')) }}:
|
||||
- stage: sbom
|
||||
displayName: 'Software Bill of Materials'
|
||||
dependsOn: signing
|
||||
|
|
Загрузка…
Ссылка в новой задаче