Fix isVersionBump detection

This commit is contained in:
Noam Okman 2021-03-15 17:58:12 +02:00 committed by GitHub
parent e9e2a453a7
commit 3a297dd15f
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}}' const commitMessage = process.env['INPUT_COMMIT-MESSAGE'] || 'ci: version bump to {{version}}'
console.log('messages:', messages) 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 const isVersionBump = messages.find(message => commitMessageRegex.test(message)) !== undefined
if (isVersionBump) { if (isVersionBump) {