mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00

Build parameters have to be parsed because they can no longer be implicitly passed, as they need to be interpreted for detecting extensions.
27 lines
748 B
JavaScript
27 lines
748 B
JavaScript
import Platform from './platform';
|
|
|
|
const core = require('@actions/core');
|
|
|
|
class Input {
|
|
static getFromUser() {
|
|
// Input variables specified in workflows using "with" prop.
|
|
const unityVersion = core.getInput('unityVersion');
|
|
const targetPlatform = core.getInput('targetPlatform') || Platform.default;
|
|
const projectPath = core.getInput('projectPath');
|
|
const buildName = core.getInput('buildName') || targetPlatform;
|
|
const buildsPath = core.getInput('buildsPath') || 'build';
|
|
const buildMethod = core.getInput('buildMethod'); // processed in docker file
|
|
|
|
return {
|
|
unityVersion,
|
|
targetPlatform,
|
|
projectPath,
|
|
buildName,
|
|
buildsPath,
|
|
buildMethod,
|
|
};
|
|
}
|
|
}
|
|
|
|
export default Input;
|