fix condition typo

This commit is contained in:
Sherif Alaa 2022-09-03 01:03:21 +02:00
parent 51850bb2b9
commit b050c52335
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ const workspace = process.env.GITHUB_WORKSPACE;
}
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');
return;
}