Skip to content

Commit 4a4ee57

Browse files
committed
Revert "no need to setup execEnv"
This reverts commit ac4592b.
1 parent 80312f1 commit 4a4ee57

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,18 @@ async function runSqldef(binaryPath: string, config: CommandConfig): Promise<str
185185
let output = "";
186186
let stderr = "";
187187

188+
const execEnv: Record<string, string> = {};
189+
for (const [key, value] of Object.entries(process.env)) {
190+
if (value !== undefined) {
191+
execEnv[key] = value;
192+
}
193+
}
194+
Object.assign(execEnv, config.env);
195+
188196
core.debug(`Running command: ${binaryPath} ${config.sanitizedArgs.join(" ")}`);
189197

190198
const exitCode = await exec.exec(binaryPath, config.args, {
199+
env: execEnv,
191200
silent: false,
192201
ignoreReturnCode: true,
193202
listeners: {

0 commit comments

Comments
 (0)