Add create-release.ps1 script

This commit is contained in:
MaksimZhukov
2020-08-27 15:26:35 +03:00
parent 3b38e3de4c
commit 7e2bc9a237
2 changed files with 89 additions and 1 deletions

View File

@@ -83,10 +83,11 @@ class GitHubApi
return $releases
}
[void] DispatchWorkflow([string]$EventType) {
[void] CreateRepositoryDispatch([string]$EventType, [object]$EventPayload) {
$url = "dispatches"
$body = @{
event_type = $EventType
client_payload = $EventPayload
} | ConvertTo-Json
$this.InvokeRestMethod($url, 'POST', $null, $body)