mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
test
This commit is contained in:
@@ -23,7 +23,7 @@ steps:
|
|||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Change build name'
|
displayName: 'Change build name'
|
||||||
condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
#condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
||||||
inputs:
|
inputs:
|
||||||
TargetType: inline
|
TargetType: inline
|
||||||
script: |
|
script: |
|
||||||
@@ -31,14 +31,14 @@ steps:
|
|||||||
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Send Slack notification'
|
displayName: 'Send Slack notification'
|
||||||
condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
#condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
||||||
inputs:
|
inputs:
|
||||||
targetType: filePath
|
targetType: filePath
|
||||||
filePath: './get-new-tool-versions/send-slack-notification.ps1'
|
filePath: './get-new-tool-versions/send-slack-notification.ps1'
|
||||||
arguments: |
|
arguments: |
|
||||||
-Url "$(SLACK_CHANNEL_URL)" `
|
-Url "$(SLACK_CHANNEL_URL)" `
|
||||||
-ToolName "$(TOOL_NAME)" `
|
-ToolName "$(TOOL_NAME)" `
|
||||||
-ToolVersion "$(Get_versions.TOOL_VERSIONS)" `
|
-ToolVersion "$(Get_versions.TOOL_VERSIONS)" `
|
||||||
-PipelineUrl "${{ variables.PIPELINE_URL }}" `
|
-PipelineUrl "$(PipelineUrl)" `
|
||||||
-ImageUrl "$(IMAGE_URL)"
|
-ImageUrl "$(IMAGE_URL)"
|
||||||
@@ -36,7 +36,7 @@ Import-Module $PSScriptRoot/helpers.psm1 -DisableNameChecking
|
|||||||
|
|
||||||
# Create JSON body
|
# Create JSON body
|
||||||
$text = "The following versions of '$toolName' are available to upload: $toolVersion"
|
$text = "The following versions of '$toolName' are available to upload: $toolVersion"
|
||||||
if ($PipelineUrl) {
|
if (-not ([string]::IsNullOrWhiteSpace($PipelineUrl))) {
|
||||||
$text += "\nLink to the pipeline: $pipelineUrl"
|
$text += "\nLink to the pipeline: $pipelineUrl"
|
||||||
}
|
}
|
||||||
$jsonBodyMessage = @"
|
$jsonBodyMessage = @"
|
||||||
|
|||||||
Reference in New Issue
Block a user