Add CancelWorkflow method

This commit is contained in:
Nikita Bykov
2021-07-13 17:14:29 +03:00
parent 4b286369c5
commit 6b744d4218

View File

@@ -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,