From fb5e5b85fbb911bb90624473f0d246dc44ce2c94 Mon Sep 17 00:00:00 2001 From: dnlcrl Date: Fri, 12 May 2023 10:08:36 +0200 Subject: [PATCH] typo fix --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index a330420..9001f92 100644 --- a/index.js +++ b/index.js @@ -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] : [];