Cleanup
parent
af3a68d3d6
commit
47bc3efc52
|
@ -24,7 +24,9 @@ class Input {
|
||||||
const rawCreateCheck = getInput('createCheck') || 'false';
|
const rawCreateCheck = getInput('createCheck') || 'false';
|
||||||
const checkName = getInput('checkName') || 'Test Results';
|
const checkName = getInput('checkName') || 'Test Results';
|
||||||
const githubToken = getInput('githubToken') || '';
|
const githubToken = getInput('githubToken') || '';
|
||||||
const customParameters = getInput('customParameters') || ''; // Validate input
|
const customParameters = getInput('customParameters') || '';
|
||||||
|
|
||||||
|
// Validate input
|
||||||
if (!includes(this.testModes, testMode)) {
|
if (!includes(this.testModes, testMode)) {
|
||||||
throw new Error(`Invalid testMode ${testMode}`);
|
throw new Error(`Invalid testMode ${testMode}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue