8000 [TASK] Release of 0.2.2 (#9) · GsActions/commit-message-checker@fe66986 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe66986

Browse files
authored
[TASK] Release of 0.2.2 (#9)
1 parent e806f6d commit fe66986

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

dist/index.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3366,11 +3366,15 @@ function run() {
33663366
return __awaiter(this, void 0, void 0, function* () {
33673367
try {
33683368
const checkerArguments = inputHelper.getInputs();
3369-
yield commitMessageChecker.checkCommitMessages(checkerArguments);
3369+
if (checkerArguments.messages.length === 0) {
3370+
core.info(`No commits found in the payload, skipping check.`);
3371+
}
3372+
else {
3373+
yield commitMessageChecker.checkCommitMessages(checkerArguments);
3374+
}
33703375
}
33713376
catch (error) {
3372-
core.error(error);
3373-
core.setFailed(error.message);
3377+
core.setFailed(error);
33743378
}
33753379
});
33763380
}
@@ -8776,9 +8780,6 @@ function getMessages() {
87768780
}
87778781
}
87788782
}
8779-
if (messages.length === 0) {
8780-
throw new Error(`No commits found in the payload.`);
8781-
}
87828783
break;
87838784
}
87848785
default: {

0 commit comments

Comments
 (0)
0