Skip to content

Commit

Permalink
new build
Browse files Browse the repository at this point in the history
  • Loading branch information
mshick committed May 5, 2023
1 parent a8a22ad commit 475aa8a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
20 changes: 10 additions & 10 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,16 +376,8 @@ const promises_1 = __importDefault(__nccwpck_require__(3977));
const files_1 = __nccwpck_require__(1743);
async function getMessage({ messageInput, messagePath, messageCancelled, messageSkipped, messageFailure, messageSuccess, preformatted, status, }) {
let message;
if (status === 'success') {
if (messageSuccess) {
message = messageSuccess;
}
else if (messagePath) {
message = await getMessageFromPath(messagePath);
}
else {
message = messageInput;
}
if (status === 'success' && messageSuccess) {
message = messageSuccess;
}
if (status === 'failure' && messageFailure) {
message = messageFailure;
Expand All @@ -396,6 +388,14 @@ async function getMessage({ messageInput, messagePath, messageCancelled, message
if (status === 'skipped' && messageSkipped) {
message = messageSkipped;
}
if (!message) {
if (messagePath) {
message = await getMessageFromPath(messagePath);
}
else {
message = messageInput;
}
}
if (!message) {
throw new Error('no message, check your message inputs');
}
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions lib/message.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,8 @@ const promises_1 = __importDefault(require("node:fs/promises"));
const files_1 = require("./files");
async function getMessage({ messageInput, messagePath, messageCancelled, messageSkipped, messageFailure, messageSuccess, preformatted, status, }) {
let message;
if (status === 'success') {
if (messageSuccess) {
message = messageSuccess;
}
else if (messagePath) {
message = await getMessageFromPath(messagePath);
}
else {
message = messageInput;
}
if (status === 'success' && messageSuccess) {
message = messageSuccess;
}
if (status === 'failure' && messageFailure) {
message = messageFailure;
Expand All @@ -28,6 +20,14 @@ async function getMessage({ messageInput, messagePath, messageCancelled, message
if (status === 'skipped' && messageSkipped) {
message = messageSkipped;
}
if (!message) {
if (messagePath) {
message = await getMessageFromPath(messagePath);
}
else {
message = messageInput;
}
}
if (!message) {
throw new Error('no message, check your message inputs');
}
Expand Down

0 comments on commit 475aa8a

Please sign in to comment.