Skip to content

Commit f2e238f

Browse files
committed
mark as failed and not an exception on non-zero
1 parent 635e0f3 commit f2e238f

3 files changed

Lines changed: 51 additions & 42 deletions

File tree

dist/index.js

Lines changed: 49 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class FlakeCheckerAction {
9292
this.idslib.recordEvent("execution_failure", {
9393
exitCode,
9494
});
95-
throw new Error(`Non-zero exit code of \`${exitCode}\` detected`);
95+
actionsCore.setFailed(`Non-zero exit code of \`${exitCode}\`.`);
9696
}
9797

9898
return exitCode;

0 commit comments

Comments
 (0)