mirror of
https://github.com/actions/versions-package-tools.git
synced 2026-01-09 04:27:20 +08:00
fix comments
This commit is contained in:
@@ -51,7 +51,7 @@ stages:
|
|||||||
|
|
||||||
- stage: Trigger_Builds
|
- stage: Trigger_Builds
|
||||||
dependsOn: Check_New_Versions
|
dependsOn: Check_New_Versions
|
||||||
condition: and(succeeded(), eq(variables['WORKFLOW_FILE_NAME'], ''))
|
condition: and(succeeded(), ne(variables['WORKFLOW_FILE_NAME'], ''))
|
||||||
jobs:
|
jobs:
|
||||||
- deployment: Run_Builds
|
- deployment: Run_Builds
|
||||||
pool:
|
pool:
|
||||||
|
|||||||
@@ -10,18 +10,35 @@ steps:
|
|||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Set PIPELINE_URL variable'
|
displayName: 'Set PIPELINE_URL variable'
|
||||||
condition: and(succeeded(), ne(variables['TOOL_NAME'], 'Python'))
|
|
||||||
inputs:
|
inputs:
|
||||||
TargetType: inline
|
TargetType: inline
|
||||||
script: |
|
script: |
|
||||||
$PipelineUrl = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
|
$ToolName = "$(ToolName)"
|
||||||
|
if ($ToolName -eq "Python") {
|
||||||
|
$PipelineUrl = " "
|
||||||
|
} else {
|
||||||
|
$PipelineUrl = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
|
||||||
|
}
|
||||||
Write-Host "##vso[task.setvariable variable=PIPELINE_URL]$PipelineUrl"
|
Write-Host "##vso[task.setvariable variable=PIPELINE_URL]$PipelineUrl"
|
||||||
|
|
||||||
- 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: |
|
||||||
$newBuildName = "[FOUND] $(Build.BuildNumber)"
|
$newBuildName = "[FOUND] $(Build.BuildNumber)"
|
||||||
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: 'Send Slack notification'
|
||||||
|
condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
||||||
|
inputs:
|
||||||
|
targetType: filePath
|
||||||
|
filePath: './get-new-tool-versions/send-slack-notification.ps1'
|
||||||
|
arguments: |
|
||||||
|
-Url "$(SLACK_CHANNEL_URL)" `
|
||||||
|
-ToolName "$(TOOL_NAME)" `
|
||||||
|
-ToolVersion "$(Get_versions.TOOL_VERSIONS)" `
|
||||||
|
-PipelineUrl "${{ variables.PIPELINE_URL }}" `
|
||||||
|
-ImageUrl "$(IMAGE_URL)"
|
||||||
Reference in New Issue
Block a user