From 3a297dd15f5f2c3addafdac465af26f70e0517c4 Mon Sep 17 00:00:00 2001 From: Noam Okman Date: Mon, 15 Mar 2021 17:58:12 +0200 Subject: [PATCH] Fix isVersionBump detection --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5765323..a961f44 100644 --- a/index.js +++ b/index.js @@ -20,7 +20,7 @@ Toolkit.run(async tools => { const commitMessage = process.env['INPUT_COMMIT-MESSAGE'] || 'ci: version bump to {{version}}' console.log('messages:', messages) - const commitMessageRegex = new RegExp(commitMessage.replace(/{{version}}/g, 'v\d\.\d\.\d'), 'ig'); + const commitMessageRegex = new RegExp(commitMessage.replace(/{{version}}/g, 'v\\d+\\.\\d+\\.\\d+'), 'ig'); const isVersionBump = messages.find(message => commitMessageRegex.test(message)) !== undefined if (isVersionBump) {