Skip to content

Commit

Permalink
fix: Script-action throws now an exception if execution failed with a…
Browse files Browse the repository at this point in the history
…n error
  • Loading branch information
stmh committed Sep 24, 2022
1 parent e5ab47d commit 42d2cf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Artifact/Actions/Base/ScriptAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function runImplementation(

$script->runScript($host_config, $cloned_context);
/** @var CommandResult $cr */
if ($cr = $context->getResult('commandResult')) {
if ($cr = $cloned_context->getResult('commandResult')) {
if ($cr->failed()) {
$cr->throwException('Script action failed with an error!');
}
Expand Down

0 comments on commit 42d2cf4

Please sign in to comment.