Merge pull request #149 from amccloud/patch-1

Update test to use null default
This commit is contained in:
Phil 2022-01-27 18:53:31 +01:00 committed by GitHub
commit 3792d9fb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -118,7 +118,7 @@ const workspace = process.env.GITHUB_WORKSPACE;
console.log('version action after final decision:', version);
// case: if nothing of the above matches
if (version === null) {
if (!version) {
exitSuccess('No version keywords found, skipping bump.');
return;
}

View File

@ -101,12 +101,12 @@ suites:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
default: minor
default: null
patch-wording: patch
tests:
- message: no hint
expected:
version: 4.1.0
version: 4.0.1-pre.0
- message: patch
expected:
version: 4.1.1