fix condition typo
This commit is contained in:
parent
51850bb2b9
commit
b050c52335
2
index.js
2
index.js
|
@ -21,7 +21,7 @@ const workspace = process.env.GITHUB_WORKSPACE;
|
||||||
}
|
}
|
||||||
|
|
||||||
const allowedTypes = ['major', 'minor', 'patch', 'rc']
|
const allowedTypes = ['major', 'minor', 'patch', 'rc']
|
||||||
if (process.env['INPUT_VERSION-TYPE'] && allowedTypes.includes(process.env['INPUT_VERSION-TYPE'])) {
|
if (process.env['INPUT_VERSION-TYPE'] && !allowedTypes.includes(process.env['INPUT_VERSION-TYPE'])) {
|
||||||
exitFailure('Invalid version type');
|
exitFailure('Invalid version type');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue