act/pkg/runner/res/trampoline.js

15 lines
309 B
JavaScript
Raw Normal View History

const { spawnSync } = require('child_process')
const spawnArguments={
cwd: process.env['INPUT_CWD'],
stdio: [
process.stdin,
process.stdout,
process.stderr,
]
}
const child=spawnSync(
'/bin/sh',
[ '-c' ].concat(process.env['INPUT_COMMAND']),
spawnArguments)
process.exit(child.status)