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.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/actions/schedule_tasks.go b/services/actions/schedule_tasks.go
index e4e56e5122..18f3324fd2 100644
--- a/services/actions/schedule_tasks.go
+++ b/services/actions/schedule_tasks.go
@@ -132,8 +132,14 @@ func CreateScheduleTask(ctx context.Context, cron *actions_model.ActionSchedule)
Status: actions_model.StatusWaiting,
}
+ vars, err := actions_model.GetVariablesOfRun(ctx, run)
+ if err != nil {
+ log.Error("GetVariablesOfRun: %v", err)
+ return err
+ }
+
// Parse the workflow specification from the cron schedule
- workflows, err := jobparser.Parse(cron.Content)
+ workflows, err := jobparser.Parse(cron.Content, jobparser.WithVars(vars))
if err != nil {
return err
}