mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-10 11:41:23 +00:00
Add CancelWorkflow method
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user