mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-11 03:56:46 +00:00
28 lines
914 B
YAML
28 lines
914 B
YAML
steps:
|
|
- task: PowerShell@2
|
|
displayName: 'Get new versions'
|
|
name: 'Get_versions'
|
|
inputs:
|
|
targetType: filePath
|
|
filePath: './get-new-tool-versions/get-new-tool-versions.ps1'
|
|
arguments: |
|
|
-ToolName "$(TOOL_NAME)"
|
|
|
|
- task: PowerShell@2
|
|
displayName: 'Set PIPELINE_URL variable'
|
|
condition: and(succeeded(), ne(variables['TOOL_NAME'], 'Python'))
|
|
inputs:
|
|
TargetType: inline
|
|
script: |
|
|
$PipelineUrl = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
|
|
Write-Host "##vso[task.setvariable variable=PIPELINE_URL]$PipelineUrl"
|
|
|
|
- task: PowerShell@2
|
|
displayName: 'Change build name'
|
|
condition: and(succeeded(), ne(variables['Get_versions.TOOL_VERSIONS'], ''))
|
|
inputs:
|
|
TargetType: inline
|
|
script: |
|
|
$newBuildName = "[FOUND] $(Build.BuildNumber)"
|
|
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|