From 4a6678f27944640c795f0e09ff95127423e91249 Mon Sep 17 00:00:00 2001 From: phips28 Date: Mon, 16 Nov 2020 20:26:17 +0100 Subject: [PATCH] reformat --- index.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.js b/index.js index 81ea787..2ebbdd0 100644 --- a/index.js +++ b/index.js @@ -31,7 +31,7 @@ Toolkit.run(async tools => { const patchWords = process.env['INPUT_PATCH-WORDING'].split(',') const preReleaseWords = process.env['INPUT_RC-WORDING'].split(',') - let version = process.env['INPUT_DEFAULT'] || 'patch' + let version = process.env.INPUT_DEFAULT || 'patch' let foundWord = null if (messages.some( @@ -40,13 +40,13 @@ Toolkit.run(async tools => { } else if (messages.some(message => minorWords.some(word => message.includes(word)))) { version = 'minor' } else if (messages.some(message => preReleaseWords.some(word => { - if (message.includes(word)) { - foundWord = word - return true - } else { - return false - } + if (message.includes(word)) { + foundWord = word + return true + } else { + return false } + } ))) { const preid = foundWord.split('-')[1] version = `prerelease --preid=${preid}`