Merge pull request #64 from johanlajili/patch-1

Fix: Action was not default to patch anymore
This commit is contained in:
Phil 2020-11-17 19:07:38 +01:00 committed by GitHub
commit 27670d773a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ Toolkit.run(async tools => {
))) { ))) {
const preid = foundWord.split('-')[1] const preid = foundWord.split('-')[1]
version = `prerelease --preid=${preid}` version = `prerelease --preid=${preid}`
} else if (patchWords && Array.isArray(patchWords)) { } else if (patchWords && Array.isArray(patchWords) && patchWords.length) {
if (!messages.some(message => patchWords.some(word => message.includes(word)))) { if (!messages.some(message => patchWords.some(word => message.includes(word)))) {
version = null version = null
} }