From efdf4140f0c8dabd03b181ad7e3366f3b5e2f968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric?= Date: Tue, 20 Jun 2023 11:17:49 +0200 Subject: [PATCH] feat: provide task ID from semaphore_vars --- services/tasks/runner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/services/tasks/runner.go b/services/tasks/runner.go index 51fdf3a7..283bc0ca 100644 --- a/services/tasks/runner.go +++ b/services/tasks/runner.go @@ -627,6 +627,8 @@ func (t *TaskRunner) getEnvironmentExtraVars() (str string, err error) { taskDetails := make(map[string]interface{}) + taskDetails["id"] = t.task.ID + if t.task.Message != "" { taskDetails["message"] = t.task.Message }