Fix slack notification condition

pull/41/head
Maksim Shilov 4 years ago
parent 86b3adef5e
commit 547b056b0b

@ -36,7 +36,7 @@ Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking
# Create JSON body # Create JSON body
if ([string]::IsNullOrWhiteSpace($Text)) { if ([string]::IsNullOrWhiteSpace($Text)) {
if ($toolName -eq ("Xamarin" -or "Python")) { if ($toolName -in ("Xamarin", "Python")) {
$Text = "The following versions of '$toolName' are available, consider adding them to toolset: $toolVersion" $Text = "The following versions of '$toolName' are available, consider adding them to toolset: $toolVersion"
} else { } else {
$Text = "The following versions of '$toolName' are available to upload: $toolVersion" $Text = "The following versions of '$toolName' are available to upload: $toolVersion"

Loading…
Cancel
Save