[ACTIONS] on.schedule: the event is always "schedule"
handleSchedules() is called every time an event is received and will check the content of the main branch to (re)create scheduled events. There is no reason why intput.Event will be relevant when the schedule workflow runs. (cherry picked from commit9a712bb276
) (cherry picked from commit41af36da81
) (cherry picked from commitbb83604fa2
) (cherry picked from commit65e4503a7a
)
This commit is contained in:
parent
c4cb7812e3
commit
9a08db699c
1 changed files with 1 additions and 1 deletions
|
@ -459,7 +459,7 @@ func handleSchedules(
|
|||
TriggerUserID: input.Doer.ID,
|
||||
Ref: input.Repo.DefaultBranch,
|
||||
CommitSHA: commit.ID.String(),
|
||||
Event: input.Event,
|
||||
Event: webhook_module.HookEventType(api.HookScheduleCreated),
|
||||
EventPayload: string(p),
|
||||
Specs: schedules,
|
||||
Content: dwf.Content,
|
||||
|
|
Loading…
Add table
Reference in a new issue