mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-26 03:30:14 +08:00
update
This commit is contained in:
@@ -35,15 +35,13 @@ Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking
|
||||
# Create JSON body
|
||||
if ([string]::IsNullOrWhiteSpace($Text)) {
|
||||
if ($toolName -eq "Xamarin") {
|
||||
$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 {
|
||||
$text = "The following versions of '$toolName' are available to upload: $toolVersion"
|
||||
$Text = "The following versions of '$toolName' are available to upload: $toolVersion"
|
||||
}
|
||||
if (-not ([string]::IsNullOrWhiteSpace($PipelineUrl))) {
|
||||
$text += "\nLink to the pipeline: $pipelineUrl"
|
||||
$Text += "\nLink to the pipeline: $pipelineUrl"
|
||||
}
|
||||
} else {
|
||||
$text = $Text
|
||||
}
|
||||
$jsonBodyMessage = @"
|
||||
{
|
||||
@@ -52,7 +50,7 @@ $jsonBodyMessage = @"
|
||||
"type": "section",
|
||||
"text": {
|
||||
"type": "mrkdwn",
|
||||
"text": "$text"
|
||||
"text": "$Text"
|
||||
},
|
||||
"accessory": {
|
||||
"type": "image",
|
||||
|
||||
Reference in New Issue
Block a user