From 77b53792b3ba629483a476d78753abd59102b985 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov Date: Mon, 22 Mar 2021 21:35:24 +0300 Subject: [PATCH] update message for Xamarin --- get-new-tool-versions/send-slack-notification.ps1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/get-new-tool-versions/send-slack-notification.ps1 b/get-new-tool-versions/send-slack-notification.ps1 index 5b5aebb..3f3518a 100644 --- a/get-new-tool-versions/send-slack-notification.ps1 +++ b/get-new-tool-versions/send-slack-notification.ps1 @@ -35,7 +35,11 @@ param( Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking # Create JSON body -$text = "The following versions of '$toolName' are available, consider adding them to toolset: $toolVersion" +if ($toolName -eq "Xamarin") { + $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" +} if (-not ([string]::IsNullOrWhiteSpace($PipelineUrl))) { $text += "\nLink to the pipeline: $pipelineUrl" }