1
1
mirror of https://github.com/go-gitea/gitea synced 2024-11-06 10:14:25 +00:00

Use the run index instead, since it's the number used in FE

This commit is contained in:
chesterip 2023-08-22 20:07:37 -04:00
parent 8b5443acdb
commit 6870e1a60c

View File

@ -186,7 +186,7 @@ func ToActionTask(ctx context.Context, repo *repo_model.Repository, t *actions_m
log.Warn("LoadAttributes of ActionTask: %v", err) log.Warn("LoadAttributes of ActionTask: %v", err)
} }
return &api.ActionTask{ return &api.ActionTask{
ID: t.Job.RunID, ID: t.Job.Run.Index,
JobName: t.Job.Name, JobName: t.Job.Name,
WorkflowID: t.Job.Run.WorkflowID, WorkflowID: t.Job.Run.WorkflowID,
Title: t.Job.Run.Title, Title: t.Job.Run.Title,