(workflowInput: unknown)
| 375 | } |
| 376 | |
| 377 | function getFilesFromWorkflowInput(workflowInput: unknown): UserFile[] | undefined { |
| 378 | if (!isRecordLike(workflowInput)) { |
| 379 | return undefined |
| 380 | } |
| 381 | const files = workflowInput.files |
| 382 | if (!Array.isArray(files)) { |
| 383 | return undefined |
| 384 | } |
| 385 | |
| 386 | const normalizedFiles = files.map(normalizeStartFile) |
| 387 | if (normalizedFiles.every((file): file is UserFile => Boolean(file))) { |
| 388 | return normalizedFiles |
| 389 | } |
| 390 | return undefined |
| 391 | } |
| 392 | |
| 393 | function mergeFilesIntoOutput( |
| 394 | output: NormalizedBlockOutput, |
no test coverage detected