import Platform from './platform'; const core = require('@actions/core'); /** * Input variables specified in workflows using "with" prop. * * Note that input is always passed as a string, even booleans. */ class Input { static get unityVersion() { return core.getInput('unityVersion'); } static get targetPlatform() { return core.getInput('targetPlatform') || Platform.default; } static get projectPath() { const rawProjectPath = core.getInput('projectPath') || '.'; return rawProjectPath.replace(/\/$/, ''); } static get buildName() { return core.getInput('buildName') || this.targetPlatform; } static get buildsPath() { return core.getInput('buildsPath') || 'build'; } static get buildMethod() { return core.getInput('buildMethod'); // processed in docker file } static get versioningStrategy() { return core.getInput('versioning') || 'Semantic'; } static get specifiedVersion() { return core.getInput('version') || ''; } static get allowDirtyBuild() { const input = core.getInput('allowDirtyBuild') || 'false'; return input === 'true' ? 'true' : 'false'; } static get customParameters() { return core.getInput('customParameters') || ''; } } export default Input;