mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-11 18:25:13 +02:00
Add run_attempt to context (#632)
Blocked by https://gitea.com/gitea/act/pulls/126 Fix https://github.com/go-gitea/gitea/issues/33135 --------- Co-authored-by: Lunny Xiao <[email protected]> Reviewed-on: https://gitea.com/gitea/act_runner/pulls/632 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: Zettat123 <[email protected]> Co-committed-by: Zettat123 <[email protected]>
This commit is contained in:
committed by
Zettat123
co-authored by
Lunny Xiao
parent
9933ea0d92
commit
505907eb2a
@@ -155,6 +155,7 @@ func (r *Runner) run(ctx context.Context, task *runnerv1.Task, reporter *report.
|
|||||||
Event: taskContext["event"].GetStructValue().AsMap(),
|
Event: taskContext["event"].GetStructValue().AsMap(),
|
||||||
RunID: taskContext["run_id"].GetStringValue(),
|
RunID: taskContext["run_id"].GetStringValue(),
|
||||||
RunNumber: taskContext["run_number"].GetStringValue(),
|
RunNumber: taskContext["run_number"].GetStringValue(),
|
||||||
|
RunAttempt: taskContext["run_attempt"].GetStringValue(),
|
||||||
Actor: taskContext["actor"].GetStringValue(),
|
Actor: taskContext["actor"].GetStringValue(),
|
||||||
Repository: taskContext["repository"].GetStringValue(),
|
Repository: taskContext["repository"].GetStringValue(),
|
||||||
EventName: taskContext["event_name"].GetStringValue(),
|
EventName: taskContext["event_name"].GetStringValue(),
|
||||||
|
|||||||
Reference in New Issue
Block a user