mirror of
https://github.com/game-ci/unity-builder.git
synced 2025-07-04 12:25:19 -04:00
23 lines
613 B
JavaScript
23 lines
613 B
JavaScript
const core = require('@actions/core');
|
|
|
|
export default class Input {
|
|
static getFromUser() {
|
|
// Input variables specified in workflows using "with" prop.
|
|
const version = core.getInput('unityVersion');
|
|
const platform = core.getInput('targetPlatform');
|
|
const projectPath = core.getInput('projectPath');
|
|
const buildName = core.getInput('buildName');
|
|
const buildsPath = core.getInput('buildsPath');
|
|
const buildMethod = core.getInput('buildMethod');
|
|
|
|
return {
|
|
version,
|
|
platform,
|
|
projectPath,
|
|
buildName,
|
|
buildsPath,
|
|
method: buildMethod,
|
|
};
|
|
}
|
|
}
|