Check for DocsMsPackagesAllValid before running validation step (#4916)
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
parent
b7afe2faf1
commit
468742224b
@ -1,6 +1,6 @@
|
||||
steps:
|
||||
# Fail the build if any of the packages failed validation. Valid values are
|
||||
# "true" or "false"
|
||||
# "true" or "false". This step will skip if $(DocsMsPackagesAllValid) is not set
|
||||
- pwsh: |
|
||||
if ('$(DocsMsPackagesAllValid)' -eq 'true') {
|
||||
Write-Host "All packages passed validation."
|
||||
@ -9,3 +9,4 @@ steps:
|
||||
exit 1
|
||||
}
|
||||
displayName: Check package validation results
|
||||
condition: and(succeeded(), ne(variables['DocsMsPackagesAllValid'], ''))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user