We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1417204 commit 63fc7d1Copy full SHA for 63fc7d1
1 file changed
src/main.ts
@@ -126,9 +126,14 @@ actionsToolkit.run(
126
};
127
128
await core.group(`Bake definition`, async () => {
129
- await Exec.exec(buildCmd.command, [...buildCmd.args, '--print'], {
+ await Exec.getExecOutput(buildCmd.command, [...buildCmd.args, '--print'], {
130
cwd: inputs.workdir,
131
- env: buildEnv
+ env: buildEnv,
132
+ ignoreReturnCode: true
133
+ }).then(res => {
134
+ if (res.stderr.length > 0 && res.exitCode != 0) {
135
+ throw Error(res.stderr);
136
+ }
137
});
138
139
0 commit comments