Check for DocsMsPackagesAllValid before running validation step (#4916)

Co-authored-by: Daniel Jurek <djurek@microsoft.com>
This commit is contained in:
Azure SDK Bot 2023-08-28 21:54:57 -07:00 committed by GitHub
parent b7afe2faf1
commit 468742224b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'], ''))