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);
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue