mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
Update check-versions.yml
This commit is contained in:
@@ -5,7 +5,15 @@ steps:
|
|||||||
inputs:
|
inputs:
|
||||||
TargetType: inline
|
TargetType: inline
|
||||||
script: |
|
script: |
|
||||||
throw "No new versions were found"
|
Write-Host "No new versions were found"
|
||||||
|
Import-Module "./azure-devops/azure-devops-api.ps1"
|
||||||
|
|
||||||
|
$azureDevOpsApi = Get-AzureDevOpsApi -TeamFoundationCollectionUri $(System.TeamFoundationCollectionUri) `
|
||||||
|
-ProjectName $(System.TeamProject) `
|
||||||
|
-AccessToken $(System.AccessToken)
|
||||||
|
|
||||||
|
$AzureDevOpsApi.UpdateBuildStatus($(Build.BuildId), 'Cancelling') | Out-Null
|
||||||
|
Start-Sleep -Seconds 60
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: 'Set PIPELINE_URL variable'
|
displayName: 'Set PIPELINE_URL variable'
|
||||||
|
|||||||
Reference in New Issue
Block a user