From 547b056b0b58286ca074cb79aaa840f712055c9f Mon Sep 17 00:00:00 2001 From: Maksim Shilov Date: Tue, 19 Oct 2021 10:27:37 +0300 Subject: [PATCH] Fix slack notification condition --- get-new-tool-versions/send-slack-notification.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-new-tool-versions/send-slack-notification.ps1 b/get-new-tool-versions/send-slack-notification.ps1 index 770db35..3c0f516 100644 --- a/get-new-tool-versions/send-slack-notification.ps1 +++ b/get-new-tool-versions/send-slack-notification.ps1 @@ -36,7 +36,7 @@ Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking # Create JSON body 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" } else { $Text = "The following versions of '$toolName' are available to upload: $toolVersion"