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