Merge pull request #149 from amccloud/patch-1
Update test to use null default
This commit is contained in:
commit
3792d9fb9a
2
index.js
2
index.js
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue