Minor cleanup

This commit is contained in:
Webber 2020-01-26 01:01:53 +01:00 committed by Webber Takken
parent d5552eaa01
commit ca2bcea3ad
5 changed files with 15 additions and 8 deletions

View File

@ -14,5 +14,8 @@ trim_trailing_whitespace = true
max_line_length = off max_line_length = off
trim_trailing_whitespace = false trim_trailing_whitespace = false
[*.{yml,yaml}]
max_line_length = off
[COMMIT_EDITMSG] [COMMIT_EDITMSG]
max_line_length = 0 max_line_length = off

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,4 @@
import Action from './model/action'; import { Action, Docker, Input, ImageTag, BuildParameters } from './model';
import Docker from './model/docker';
import ImageTag from './model/image-tag';
import Input from './model/input';
import BuildParameters from './model/build-parameters';
const core = require('@actions/core'); const core = require('@actions/core');

8
src/model/index.js Normal file
View File

@ -0,0 +1,8 @@
import Action from './action';
import BuildParameters from './build-parameters';
import Docker from './docker';
import Input from './input';
import ImageTag from './image-tag';
import Platform from './platform';
export { Action, BuildParameters, Docker, Input, ImageTag, Platform };

View File

@ -7,7 +7,7 @@ class Input {
// Input variables specified in workflows using "with" prop. // Input variables specified in workflows using "with" prop.
const unityVersion = core.getInput('unityVersion'); const unityVersion = core.getInput('unityVersion');
const targetPlatform = core.getInput('targetPlatform') || Platform.default; const targetPlatform = core.getInput('targetPlatform') || Platform.default;
const projectPath = core.getInput('projectPath'); const projectPath = core.getInput('projectPath') || '.';
const buildName = core.getInput('buildName') || targetPlatform; const buildName = core.getInput('buildName') || targetPlatform;
const buildsPath = core.getInput('buildsPath') || 'build'; const buildsPath = core.getInput('buildsPath') || 'build';
const buildMethod = core.getInput('buildMethod'); // processed in docker file const buildMethod = core.getInput('buildMethod'); // processed in docker file