mirror of https://github.com/nektos/act
15 lines
304 B
JavaScript
15 lines
304 B
JavaScript
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)
|