(key: string, value)
| 14 | } |
| 15 | |
| 16 | export function githubOutputRecord(key: string, value): string { |
| 17 | const serialized = typeof value === 'string' ? value : JSON.stringify(value) |
| 18 | if (!serialized.includes('\n') && !serialized.includes('\r')) { |
| 19 | return `${key}=${serialized}\n` |
| 20 | } |
| 21 | |
| 22 | const delimiter = outputDelimiter(key, serialized) |
| 23 | return `${key}<<${delimiter}\n${serialized}\n${delimiter}\n` |
| 24 | } |
no test coverage detected