Add CancelWorkflow method

v-nibyko/get-go-versions
Nikita Bykov 4 years ago
parent 4b286369c5
commit 6b744d4218

@ -124,6 +124,11 @@ class GitHubApi
}
}
[void] CancelWorkflow([string]$WorkflowId) {
$url = "actions/runs/$WorkflowId/cancel"
$this.InvokeRestMethod($url, 'POST', $null, $null)
}
[object] hidden InvokeRestMethod(
[string] $Url,
[string] $Method,

Loading…
Cancel
Save