Skip to content

Commit 076deb3

Browse files
Update the check tasks versions step's condition in CI
Update the check tasks versions step's condition to specify which branches shouldn't be cheked
1 parent e383da5 commit 076deb3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ci/build-all-steps.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,14 @@ steps:
108108

109109
- script: node ./ci/check-downgrading.js --task "$(task_pattern_fordowngradingcheck)" --sprint $(currentSprint) --week $(currentSprintWeek)
110110
displayName: Check for downgrading tasks
111-
# remove SourceBranch condition after merging users/merlynop/node20merge-2 ; see https://github.com/microsoft/azure-pipelines-tasks/pull/20819
112111
condition: |
113112
and(
114113
succeeded(),
115114
ne(variables['numTasksForDowngradingCheck'], 0),
116115
ne(variables['COURTESY_PUSH'], 'true'),
117116
eq(variables['build.reason'], 'PullRequest'),
118117
eq(variables['System.PullRequest.TargetBranch'], 'master'),
119-
ne(variables['System.PullRequest.SourceBranch'], 'users/merlynop/node20merge-2')
118+
not(contains(variables['BRANCH_EXCLUDED_FROM_VERSION_CHECK'], variables['System.PullRequest.SourceBranch']))
120119
)
121120
122121
# Clean

0 commit comments

Comments
 (0)