MCPcopy
hub / github.com/formatjs/formatjs / githubOutputRecord

Function githubOutputRecord

tools/release-please/github-output.ts:16–24  ·  view source on GitHub ↗
(key: string, value)

Source from the content-addressed store, hash-verified

14}
15
16export 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}

Callers 2

setOutputFunction · 0.90

Calls 1

outputDelimiterFunction · 0.85

Tested by

no test coverage detected