Merge pull request #80 from noamokman/patch-1

Fix isVersionBump detection
This commit is contained in:
Phil 2021-03-16 19:31:18 +01:00 committed by GitHub
commit 26d1581db4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {