File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -31213,7 +31213,7 @@ async function main() {
3121331213 });
3121431214 const lastCommit = listCommits.slice(0);
3121531215 console.log(lastCommit[0].commit.message);
31216- const lastCommitMessage = lastCommit[0].commit.message;
31216+ const lastCommitMessage = lastCommit[0].commit.message.trim() ;
3121731217
3121831218 if (!lastCommitMessage) {
3121931219 core.setFailed('Empty commit message.');
Original file line number Diff line number Diff line change @@ -120,7 +120,7 @@ async function main() {
120120 } ) ;
121121 const lastCommit = listCommits . slice ( 0 ) ;
122122 console . log ( lastCommit [ 0 ] . commit . message ) ;
123- const lastCommitMessage = lastCommit [ 0 ] . commit . message ;
123+ const lastCommitMessage = lastCommit [ 0 ] . commit . message . trim ( ) ;
124124
125125 if ( ! lastCommitMessage ) {
126126 core . setFailed ( 'Empty commit message.' ) ;
You can’t perform that action at this time.
0 commit comments