mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-11 03:56:46 +00:00
Configure CI to get tool versions
This commit is contained in:
@@ -56,6 +56,15 @@ class AzureDevOpsApi
|
||||
return $this.InvokeRestMethod($url, 'GET', $null)
|
||||
}
|
||||
|
||||
[object] UpdateBuildStatus([UInt32]$BuildId, [string]$BuildStatus){
|
||||
$url = "build/builds/$BuildId"
|
||||
$body = @{
|
||||
status = $BuildStatus
|
||||
} | ConvertTo-Json
|
||||
|
||||
return $this.InvokeRestMethod($url, 'PATCH', $body)
|
||||
}
|
||||
|
||||
[string] hidden BuildUrl([string]$Url) {
|
||||
return "$($this.BaseUrl)/${Url}/?api-version=5.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user