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
1 changed files with 1 additions and 1 deletions

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)
}
return &api.ActionTask{
ID: t.Job.RunID,
ID: t.Job.Run.Index,
JobName: t.Job.Name,
WorkflowID: t.Job.Run.WorkflowID,
Title: t.Job.Run.Title,