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
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
Generated Vendored
+1 -1
View File
File diff suppressed because one or more lines are too long
+7 -2
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);
}
});
});