mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 19:50:24 +00:00
test
This commit is contained in:
@@ -27,10 +27,7 @@ param(
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[System.String]$ToolVersion,
|
||||
|
||||
[Parameter(Mandatory)]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[System.String]$PipelineUrl,
|
||||
|
||||
[System.String]$ImageUrl = 'https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png'
|
||||
)
|
||||
|
||||
@@ -38,7 +35,10 @@ param(
|
||||
Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking
|
||||
|
||||
# Create JSON body
|
||||
$text = "The following versions of '$toolName' are available to upload: $toolVersion\nLink to the pipeline: $pipelineUrl"
|
||||
$text = "The following versions of '$toolName' are available to upload: $toolVersion"
|
||||
if ($PipelineUrl) {
|
||||
$text += "\nLink to the pipeline: $pipelineUrl"
|
||||
}
|
||||
$jsonBodyMessage = @"
|
||||
{
|
||||
"blocks": [
|
||||
|
||||
Reference in New Issue
Block a user