Merge pull request #80 from noamokman/patch-1
Fix isVersionBump detection
This commit is contained in:
commit
26d1581db4
2
index.js
2
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) {
|
||||
|
|
Loading…
Reference in New Issue