Skip to content

Commit 282fc9a

Browse files
committed
fix
1 parent 2a6f537 commit 282fc9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/actions/runner/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ func findTaskNeeds(ctx context.Context, task *actions_model.ActionTask) (map[str
178178
// it shouldn't happen, or the job has been rerun
179179
continue
180180
}
181-
outputs := make(map[string]string)
182181
got, err := actions_model.FindTaskOutputByTaskID(ctx, job.TaskID)
183182
if err != nil {
184183
return nil, fmt.Errorf("FindTaskOutputByTaskID: %w", err)
185184
}
185+
outputs := make(map[string]string, len(got))
186186
for _, v := range got {
187187
outputs[v.OutputKey] = v.OutputValue
188188
}

0 commit comments

Comments
 (0)