From 8f1a38e7553504fd3ba1ac4fedd0317ee5de60b3 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Thu, 19 Aug 2021 11:32:59 +0300 Subject: [PATCH] update --- 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 3f3518a..94be833 100644 --- a/get-new-tool-versions/send-slack-notification.ps1 +++ b/get-new-tool-versions/send-slack-notification.ps1 @@ -27,6 +27,10 @@ param( [ValidateNotNullOrEmpty()] [System.String]$ToolVersion, + [Parameter(Mandatory)] + [ValidateNotNullOrEmpty()] + [System.String]$Message, + [System.String]$PipelineUrl, [System.String]$ImageUrl = 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png' ) @@ -50,7 +54,7 @@ $jsonBodyMessage = @" "type": "section", "text": { "type": "mrkdwn", - "text": "$text" + "text": "$Message" }, "accessory": { "type": "image",