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

Function writeOutputs

scripts/ci/affected-workspaces.mjs:176–188  ·  view source on GitHub ↗
(outputs)

Source from the content-addressed store, hash-verified

174}
175
176function writeOutputs(outputs) {
177 const outputFile = process.env.GITHUB_OUTPUT
178 if (!outputFile) {
179 return
180 }
181
182 appendFileSync(
183 outputFile,
184 Object.entries(outputs)
185 .map(([key, value]) => `${key}=${value}`)
186 .join(`\n`) + `\n`
187 )
188}
189
190function run(command, args) {
191 return execFileSync(command, args, {

Callers 1

Calls 3

joinMethod · 0.45
mapMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected