mirror of
https://github.com/game-ci/unity-test-runner.git
synced 2026-02-05 12:36:37 +08:00
Check GitHub token (#99)
* Reeplace createCheck option with check for githubToken * Fix index.js
This commit is contained in:
@@ -21,10 +21,9 @@ class Input {
|
||||
const rawProjectPath = getInput('projectPath') || '.';
|
||||
const rawArtifactsPath = getInput('artifactsPath') || 'artifacts';
|
||||
const rawUseHostNetwork = getInput('useHostNetwork') || 'false';
|
||||
const rawCreateCheck = getInput('createCheck') || 'false';
|
||||
const checkName = getInput('checkName') || 'Test Results';
|
||||
const githubToken = getInput('githubToken') || '';
|
||||
const customParameters = getInput('customParameters') || '';
|
||||
const githubToken = getInput('githubToken') || '';
|
||||
const checkName = getInput('checkName') || 'Test Results';
|
||||
|
||||
// Validate input
|
||||
if (!includes(this.testModes, testMode)) {
|
||||
@@ -47,7 +46,6 @@ class Input {
|
||||
const projectPath = rawProjectPath.replace(/\/$/, '');
|
||||
const artifactsPath = rawArtifactsPath.replace(/\/$/, '');
|
||||
const useHostNetwork = rawUseHostNetwork === 'true';
|
||||
const createCheck = rawCreateCheck === 'true';
|
||||
const unityVersion =
|
||||
rawUnityVersion === 'auto' ? UnityVersionParser.read(projectPath) : rawUnityVersion;
|
||||
|
||||
@@ -59,10 +57,9 @@ class Input {
|
||||
testMode,
|
||||
artifactsPath,
|
||||
useHostNetwork,
|
||||
createCheck,
|
||||
checkName,
|
||||
githubToken,
|
||||
customParameters,
|
||||
githubToken,
|
||||
checkName,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user