-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.js
22 lines (19 loc) · 801 Bytes
/
build.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const core = require("@actions/core");
const exec = require("@actions/exec");
async function run() {
try {
process.env.UNITY_VERSION = core.getInput("unity-version");
process.env.UNITY_USERNAME = core.getInput("unity-username");
process.env.UNITY_PASSWORD = core.getInput("unity-password");
process.env.UNITY_SERIAL = core.getInput("unity-serial");
process.env.BUILD_TARGET = core.getInput("build-target");
process.env.PROJECT_PATH = core.getInput("project-path");
process.env.EXECUTE_METHOD = core.getInput("execute-method");
process.env.OUTPUT_PATH = core.getInput("output-path");
process.env.COMMAND_ARGS = core.getInput("command-args");
await exec.exec(`bash ${__dirname}/build.sh`);
} catch (error) {
core.setFailed(error.message);
}
}
run();