mirror of
https://github.com/actions/versions-package-tools.git
synced 2025-12-13 05:06:53 +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(
|
[object] hidden InvokeRestMethod(
|
||||||
[string] $Url,
|
[string] $Url,
|
||||||
[string] $Method,
|
[string] $Method,
|
||||||
|
|||||||
Reference in New Issue
Block a user