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); console.log('version action after final decision:', version);
// case: if nothing of the above matches // case: if nothing of the above matches
if (version === null) { if (!version) {
exitSuccess('No version keywords found, skipping bump.'); exitSuccess('No version keywords found, skipping bump.');
return; return;
} }

View File

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