Skip to content

Commit d5ea2ce

Browse files
committed
Format AzDO condition
1 parent a88456e commit d5ea2ce

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.vsts-dotnet.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,15 @@ stages:
245245

246246
- template: /eng/common/templates/steps/component-governance.yml
247247
parameters:
248-
${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), or(startsWith(variables['Build.SourceBranch'], 'refs/heads/vs'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))) }}:
248+
${{ if and(
249+
ne(variables['System.TeamProject'], 'public'),
250+
notin(variables['Build.Reason'], 'PullRequest'),
251+
or(
252+
startsWith(variables['Build.SourceBranch'], 'refs/heads/vs'),
253+
eq(variables['Build.SourceBranch'], 'refs/heads/main')
254+
)
255+
)
256+
}}:
249257
disableComponentGovernance: false
250258
${{ else }}:
251259
disableComponentGovernance: true

0 commit comments

Comments
 (0)