Try using execFile
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
import { info, setFailed, getInput, warning } from '@actions/core'
|
import { info, setFailed, getInput, warning } from '@actions/core'
|
||||||
import { join as path } from 'path'
|
import { join as path } from 'path'
|
||||||
import { execFileSync } from 'child_process'
|
import { execFile } from 'child_process'
|
||||||
|
|
||||||
try {
|
try {
|
||||||
checkInputs()
|
checkInputs()
|
||||||
const output = execFileSync(path(__dirname, 'entrypoint.sh'))
|
execFile(path(__dirname, 'entrypoint.sh'))
|
||||||
info(output.toString())
|
.stdout?.on('data', data => info(data.toString()))
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err)
|
console.error(err)
|
||||||
setFailed(err instanceof Error ? err.message : err)
|
setFailed(err instanceof Error ? err.message : err)
|
||||||
|
|||||||
Reference in New Issue
Block a user