Merge pull request #271 from crazy-max/bvake-def-throw-err

throw error message instead of exit code when parsing definition
This commit is contained in:
CrazyMax
2024-11-22 09:31:15 +01:00
committed by GitHub
3 changed files with 9 additions and 4 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@@ -126,9 +126,14 @@ actionsToolkit.run(
};
await core.group(`Bake definition`, async () => {
await Exec.exec(buildCmd.command, [...buildCmd.args, '--print'], {
await Exec.getExecOutput(buildCmd.command, [...buildCmd.args, '--print'], {
cwd: inputs.workdir,
env: buildEnv
env: buildEnv,
ignoreReturnCode: true
}).then(res => {
if (res.stderr.length > 0 && res.exitCode != 0) {
throw Error(res.stderr);
}
});
});