Merge pull request #55 from bootsie123/master

fix: default version bump
This commit is contained in:
Phil 2020-10-23 15:09:14 +02:00 committed by GitHub
commit e178d75a78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -31,3 +31,7 @@ inputs:
description: 'Custom dir to the package' description: 'Custom dir to the package'
default: '' default: ''
required: false required: false
default:
description: 'Set a default version bump to use'
default: 'patch'
required: false

View File

@ -31,7 +31,7 @@ Toolkit.run(async tools => {
const patchWords = process.env['INPUT_PATCH-WORDING'].split(',') const patchWords = process.env['INPUT_PATCH-WORDING'].split(',')
const preReleaseWords = process.env['INPUT_RC-WORDING'].split(',') const preReleaseWords = process.env['INPUT_RC-WORDING'].split(',')
let version = process.env['DEFAULT'] || 'patch' let version = process.env['INPUT_DEFAULT'] || 'patch'
let foundWord = null; let foundWord = null;
if (messages.some( if (messages.some(