MCPcopy Create free account
hub / github.com/electric-sql/electric / writeOutputs

Function writeOutputs

scripts/ci/example-matrix.mjs:222–234  ·  view source on GitHub ↗
(outputs)

Source from the content-addressed store, hash-verified

220}
221
222function writeOutputs(outputs) {
223 const outputFile = process.env.GITHUB_OUTPUT
224 if (!outputFile) {
225 return
226 }
227
228 appendFileSync(
229 outputFile,
230 Object.entries(outputs)
231 .map(([key, value]) => `${key}=${value}`)
232 .join(`\n`) + `\n`
233 )
234}
235
236function run(command, args) {
237 return execFileSync(command, args, {

Callers 1

example-matrix.mjsFile · 0.70

Calls 3

joinMethod · 0.45
mapMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected