mirror of
https://github.com/actions/actions-runner-controller.git
synced 2025-12-28 04:29:08 +08:00
Revert "feat: adding workflow_dispatch webhook event" (#879)
This reverts commit d36d47fe66.
This commit is contained in:
@@ -69,10 +69,9 @@ type ScaleUpTrigger struct {
|
||||
}
|
||||
|
||||
type GitHubEventScaleUpTriggerSpec struct {
|
||||
CheckRun *CheckRunSpec `json:"checkRun,omitempty"`
|
||||
PullRequest *PullRequestSpec `json:"pullRequest,omitempty"`
|
||||
Push *PushSpec `json:"push,omitempty"`
|
||||
WorkflowDispatch *WorkflowDispatchSpec `json:"push,omitempty"`
|
||||
CheckRun *CheckRunSpec `json:"checkRun,omitempty"`
|
||||
PullRequest *PullRequestSpec `json:"pullRequest,omitempty"`
|
||||
Push *PushSpec `json:"push,omitempty"`
|
||||
}
|
||||
|
||||
// https://docs.github.com/en/actions/reference/events-that-trigger-workflows#check_run
|
||||
@@ -102,13 +101,6 @@ type PullRequestSpec struct {
|
||||
type PushSpec struct {
|
||||
}
|
||||
|
||||
// WorkflowDispatchSpec is the condition for triggering scale-up on push event
|
||||
// Also see https://docs.github.com/en/actions/reference/events-that-trigger-workflows#workflow_dispatch
|
||||
type WorkflowDispatchSpec struct {
|
||||
Branches []string `json:"branches,omitempty"`
|
||||
BranchesIgnore []string `json:"branchesIgnore,omitempty"`
|
||||
}
|
||||
|
||||
// CapacityReservation specifies the number of replicas temporarily added
|
||||
// to the scale target until ExpirationTime.
|
||||
type CapacityReservation struct {
|
||||
|
||||
Reference in New Issue
Block a user