aboutsummaryrefslogtreecommitdiffstats
path: root/services/actions/schedule_tasks.go
diff options
context:
space:
mode:
Diffstat (limited to 'services/actions/schedule_tasks.go')
-rw-r--r--services/actions/schedule_tasks.go14
1 files changed, 1 insertions, 13 deletions
diff --git a/services/actions/schedule_tasks.go b/services/actions/schedule_tasks.go
index 12227377ab..40b606c777 100644
--- a/services/actions/schedule_tasks.go
+++ b/services/actions/schedule_tasks.go
@@ -113,6 +113,7 @@ func CreateScheduleTask(ctx context.Context, cron *actions_model.ActionSchedule)
CommitSHA: cron.CommitSHA,
Event: cron.Event,
EventPayload: cron.EventPayload,
+ ScheduleID: cron.ID,
Status: actions_model.StatusWaiting,
}
@@ -127,19 +128,6 @@ func CreateScheduleTask(ctx context.Context, cron *actions_model.ActionSchedule)
return err
}
- // Retrieve the jobs for the newly created action run
- jobs, _, err := actions_model.FindRunJobs(ctx, actions_model.FindRunJobOptions{RunID: run.ID})
- if err != nil {
- return err
- }
-
- // Create commit statuses for each job
- for _, job := range jobs {
- if err := createCommitStatus(ctx, job); err != nil {
- return err
- }
- }
-
// Return nil if no errors occurred
return nil
}