Skip to content

Commit 0d3a007

Browse files
Check for DocsMsPackagesAllValid before running validation step (Azure#38406)
Co-authored-by: Daniel Jurek <[email protected]>
1 parent 67fd2d5 commit 0d3a007

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
steps:
22
# Fail the build if any of the packages failed validation. Valid values are
3-
# "true" or "false"
3+
# "true" or "false". This step will skip if $(DocsMsPackagesAllValid) is not set
44
- pwsh: |
55
if ('$(DocsMsPackagesAllValid)' -eq 'true') {
66
Write-Host "All packages passed validation."
@@ -9,3 +9,4 @@ steps:
99
exit 1
1010
}
1111
displayName: Check package validation results
12+
condition: and(succeeded(), ne(variables['DocsMsPackagesAllValid'], ''))

0 commit comments

Comments
 (0)