This commit is contained in:
dnlcrl 2023-05-12 10:08:36 +02:00
parent 394c299ffe
commit fb5e5b85fb
1 changed files with 2 additions and 2 deletions

View File

@ -36,10 +36,10 @@ const pkg = getPackageJson();
console.log('tagPrefix:', tagPrefix);
console.log('tagSuffix:', tagSuffix);
const checkLAstCommitOnly = process.env['INPUT_CHECK-LAST-COMMIT-ONLY'] || 'false';
const checkLastCommitOnly = process.env['INPUT_CHECK-LAST-COMMIT-ONLY'] || 'false';
let messages = []
if (checkLAstCommitOnly === 'true') {
if (checkLastCommitOnly === 'true') {
console.log('Only checking the last commit...');
const commit = event.commits ? event.commits[event.commits.length - 1] : null;
messages = commit ? [commit.message + '\n' + commit.body] : [];