From 002630651567a7506da290cb2bfab0db71430f51 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 af90b69..5f474cf 100644 --- a/runtime/task.go +++ b/runtime/task.go @@ -141,7 +141,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 {