Skip to content

Commit

Permalink
fix: don't fail when result is waived
Browse files Browse the repository at this point in the history
  • Loading branch information
jamacku committed May 22, 2024
1 parent b2ad1ed commit 53977ed
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
22 changes: 16 additions & 6 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,12 +214,18 @@ async function action(
err.push(...statusSummary, ...statusTables);

if (err.length > 0) {
raise(
const status =
// Show '#### Failed' header only when there is a failed message
getFailedMessage(err, statusSummary.length > 0) +
'\n\n' +
getSuccessMessage(message)
);
'\n\n' +
getSuccessMessage(message);

// Don't raise error if waive label is set
if (isWaived) {
return status;
}

raise(status);
}

// success message only when waive label is set otherwise don't show success message only failed message
Expand Down

0 comments on commit 53977ed

Please sign in to comment.