2019-12-22 14:05:15 +00:00
|
|
|
const core = require('@actions/core');
|
|
|
|
|
|
|
|
export default class Input {
|
|
|
|
static getFromUser() {
|
|
|
|
// Input variables specified in workflows using "with" prop.
|
2019-12-22 17:07:55 +00:00
|
|
|
const version = core.getInput('unityVersion');
|
|
|
|
const platform = core.getInput('targetPlatform');
|
2019-12-22 14:05:15 +00:00
|
|
|
const projectPath = core.getInput('projectPath');
|
|
|
|
const buildName = core.getInput('buildName');
|
|
|
|
const buildsPath = core.getInput('buildsPath');
|
|
|
|
const buildMethod = core.getInput('buildMethod');
|
|
|
|
|
|
|
|
return {
|
2019-12-22 17:07:55 +00:00
|
|
|
version,
|
|
|
|
platform,
|
2019-12-22 14:05:15 +00:00
|
|
|
projectPath,
|
|
|
|
buildName,
|
|
|
|
buildsPath,
|
2019-12-22 17:07:55 +00:00
|
|
|
method: buildMethod,
|
2019-12-22 14:05:15 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|