Skip to content

Commit

Permalink
Don't fail if the post step has an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed Apr 11, 2024
1 parent e6d474a commit 8f9d516
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ export class IdsToolbox {
: JSON.stringify(error);

this.addFact(FACT_FINAL_EXCEPTION, reportable);
actionsCore.setFailed(reportable);

if (this.executionPhase !== "post") {
actionsCore.setFailed(reportable);
}

this.recordEvent(EVENT_EXCEPTION);
} finally {
await this.complete();
Expand Down

0 comments on commit 8f9d516

Please sign in to comment.