From 370989b2d0fb791f4faf07c1f3d75849ced2b2ec Mon Sep 17 00:00:00 2001 From: sillyguodong Date: Wed, 15 Mar 2023 09:44:13 +0800 Subject: [PATCH] Print the kind of event that trigger the actions (#48) ![image](/attachments/28a866c6-3134-477d-a8c8-d624fa90db0b) Co-authored-by: Lunny Xiao Reviewed-on: https://gitea.com/gitea/act_runner/pulls/48 Reviewed-by: Lunny Xiao Reviewed-by: techknowlogick Co-authored-by: sillyguodong Co-committed-by: sillyguodong --- runtime/task.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/task.go b/runtime/task.go index 911e5e1..1719394 100644 --- a/runtime/task.go +++ b/runtime/task.go @@ -144,7 +144,7 @@ func (t *Task) Run(ctx context.Context, task *runnerv1.Task, runnerName, runnerV }() reporter.RunDaemon() - reporter.Logf("%s(version:%s) received task %v of job %v", runnerName, runnerVersion, task.Id, task.Context.Fields["job"].GetStringValue()) + reporter.Logf("%s(version:%s) received task %v of job %v, be triggered by event: %s", runnerName, runnerVersion, task.Id, task.Context.Fields["job"].GetStringValue(), task.Context.Fields["event_name"].GetStringValue()) workflowsPath, err := getWorkflowsPath(t.Input.repoDirectory) if err != nil {