From 9cd727829fe5b80ec943b05130db792ea05ef00d Mon Sep 17 00:00:00 2001 From: Federico Grandi Date: Fri, 1 May 2020 11:26:05 +0200 Subject: [PATCH] Try using execFile --- src/main.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index 33e8e44..e16000f 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,11 +1,11 @@ import { info, setFailed, getInput, warning } from '@actions/core' import { join as path } from 'path' -import { execFileSync } from 'child_process' +import { execFile } from 'child_process' try { checkInputs() - const output = execFileSync(path(__dirname, 'entrypoint.sh')) - info(output.toString()) + execFile(path(__dirname, 'entrypoint.sh')) + .stdout?.on('data', data => info(data.toString())) } catch (err) { console.error(err) setFailed(err instanceof Error ? err.message : err)