mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-11 03:56:46 +00:00
add xamarin tool version
This commit is contained in:
37
azure-pipelines/get-tool-versions-xamarin.yml
Normal file
37
azure-pipelines/get-tool-versions-xamarin.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
name: $(date:yyyyMMdd)$(rev:.r)
|
||||
trigger: none
|
||||
pr: none
|
||||
schedules:
|
||||
- cron: "0 8 * * Thu"
|
||||
displayName: Daily build
|
||||
branches:
|
||||
include:
|
||||
- main
|
||||
always: true
|
||||
|
||||
variables:
|
||||
PoolName: 'Azure Pipelines'
|
||||
VmImage: 'ubuntu-18.04'
|
||||
|
||||
stages:
|
||||
- stage: Find_New_Versions
|
||||
dependsOn: []
|
||||
jobs:
|
||||
- job: Find_New_Versions
|
||||
pool:
|
||||
name: $(PoolName)
|
||||
vmImage: $(VmImage)
|
||||
steps:
|
||||
- template: /azure-pipelines/templates/get-tool-versions-steps.yml
|
||||
|
||||
- stage: Check_New_Versions
|
||||
dependsOn: Find_New_Versions
|
||||
jobs:
|
||||
- job: Check_New_Versions
|
||||
pool:
|
||||
name: $(PoolName)
|
||||
vmImage: $(VmImage)
|
||||
variables:
|
||||
ToolVersions: $[ stageDependencies.Find_New_Versions.Find_New_Versions.outputs['Get_versions.TOOL_VERSIONS'] ]
|
||||
steps:
|
||||
- template: /azure-pipelines/templates/check-versions.yml
|
||||
@@ -21,7 +21,7 @@ steps:
|
||||
TargetType: inline
|
||||
script: |
|
||||
$ToolName = "$(TOOL_NAME)"
|
||||
if ($ToolName -eq "Python") {
|
||||
if ($ToolName -in @("Python", "Xamarin") {
|
||||
$PipelineUrl = " "
|
||||
} else {
|
||||
$PipelineUrl = "$(System.TeamFoundationCollectionUri)$(System.TeamProject)/_build/results?buildId=$(Build.BuildId)"
|
||||
@@ -36,7 +36,7 @@ steps:
|
||||
$newBuildName = "[FOUND] $(Build.BuildNumber)"
|
||||
Write-Host "##vso[build.updatebuildnumber]$newBuildName"
|
||||
|
||||
- task: PowerShell@2
|
||||
- task: PowerShell@2
|
||||
displayName: 'Send Slack notification'
|
||||
inputs:
|
||||
targetType: filePath
|
||||
|
||||
Reference in New Issue
Block a user