Allow custom parameters
This commit is contained in:
@@ -9,6 +9,7 @@ class BuildParameters {
|
||||
buildName,
|
||||
buildsPath,
|
||||
buildMethod,
|
||||
customParameters,
|
||||
} = parameters;
|
||||
|
||||
return {
|
||||
@@ -19,6 +20,7 @@ class BuildParameters {
|
||||
buildPath: `${buildsPath}/${targetPlatform}`,
|
||||
buildFile: this.parseBuildFile(buildName, targetPlatform),
|
||||
buildMethod,
|
||||
customParameters,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ class Docker {
|
||||
buildPath,
|
||||
buildFile,
|
||||
buildMethod,
|
||||
customParameters,
|
||||
} = parameters;
|
||||
|
||||
const command = `docker run \
|
||||
@@ -43,6 +44,7 @@ class Docker {
|
||||
--env BUILD_PATH=${buildPath} \
|
||||
--env BUILD_FILE=${buildFile} \
|
||||
--env BUILD_METHOD=${buildMethod} \
|
||||
--env CUSTOM_PARAMETERS=${customParameters} \
|
||||
--env HOME=/github/home \
|
||||
--env GITHUB_REF \
|
||||
--env GITHUB_SHA \
|
||||
|
||||
@@ -11,6 +11,7 @@ class Input {
|
||||
const buildName = core.getInput('buildName') || targetPlatform;
|
||||
const buildsPath = core.getInput('buildsPath') || 'build';
|
||||
const buildMethod = core.getInput('buildMethod'); // processed in docker file
|
||||
const customParameters = core.getInput('customParameters') || '';
|
||||
|
||||
return {
|
||||
unityVersion,
|
||||
@@ -19,6 +20,7 @@ class Input {
|
||||
buildName,
|
||||
buildsPath,
|
||||
buildMethod,
|
||||
customParameters,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user