feat: add message-skipped input to action (#76)

* add message-skipped input to action
This commit is contained in:
Aryella Lacerda 2023-04-22 08:32:11 -03:00 committed by GitHub
parent ec8c4b3b90
commit e4a2f85328
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 38 additions and 1 deletions

View file

@ -55,6 +55,7 @@ async function getInputs() {
const messageSuccess = core.getInput(`message-success`);
const messageFailure = core.getInput(`message-failure`);
const messageCancelled = core.getInput(`message-cancelled`);
const messageSkipped = core.getInput(`message-skipped`);
if (status === 'success' && messageSuccess) {
message = messageSuccess;
}
@ -64,6 +65,9 @@ async function getInputs() {
if (status === 'cancelled' && messageCancelled) {
message = messageCancelled;
}
if (status === 'skipped' && messageSkipped) {
message = messageSkipped;
}
if (!message) {
throw new Error('no message, check your message inputs');
}