Skip to content

Commit

Permalink
Merge pull request #1289 from cedbale/taskId
Browse files Browse the repository at this point in the history
feat: expose taskID into semaphore_vars
  • Loading branch information
fiftin authored Jun 27, 2023
2 parents ff55a78 + 653029c commit 62a771f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/tasks/runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,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
Expand Down

0 comments on commit 62a771f

Please sign in to comment.