Skip to content

Commit 9cd7278

Browse files
committed
Try using execFile
1 parent f0fcdb0 commit 9cd7278

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { info, setFailed, getInput, warning } from '@actions/core'
22
import { join as path } from 'path'
3-
import { execFileSync } from 'child_process'
3+
import { execFile } from 'child_process'
44

55
try {
66
checkInputs()
7-
const output = execFileSync(path(__dirname, 'entrypoint.sh'))
8-
info(output.toString())
7+
execFile(path(__dirname, 'entrypoint.sh'))
8+
.stdout?.on('data', data => info(data.toString()))
99
} catch (err) {
1010
console.error(err)
1111
setFailed(err instanceof Error ? err.message : err)

0 commit comments

Comments
 (0)