Fix missing env variable
parent
40ad68f6ae
commit
8d0083f713
|
@ -290,6 +290,7 @@ const Docker = {
|
||||||
${image_environment_factory_1.default.getEnvVarString(parameters)} \
|
${image_environment_factory_1.default.getEnvVarString(parameters)} \
|
||||||
--env GIT_CONFIG_EXTENSIONS \
|
--env GIT_CONFIG_EXTENSIONS \
|
||||||
--env TEST_PLATFORMS="${testPlatforms}" \
|
--env TEST_PLATFORMS="${testPlatforms}" \
|
||||||
|
--env GITHUB_WORKSPACE="/github/workspace" \
|
||||||
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
||||||
--volume "${githubHome}:/root:z" \
|
--volume "${githubHome}:/root:z" \
|
||||||
--volume "${githubWorkflow}:/github/workflow:z" \
|
--volume "${githubWorkflow}:/github/workflow:z" \
|
||||||
|
@ -695,7 +696,6 @@ class Input {
|
||||||
const unityVersion = (0, core_1.getInput)('unityVersion') || 'auto';
|
const unityVersion = (0, core_1.getInput)('unityVersion') || 'auto';
|
||||||
const customImage = (0, core_1.getInput)('customImage') || '';
|
const customImage = (0, core_1.getInput)('customImage') || '';
|
||||||
const rawProjectPath = (0, core_1.getInput)('projectPath') || '.';
|
const rawProjectPath = (0, core_1.getInput)('projectPath') || '.';
|
||||||
core.info(`rawProjectPath: ${rawProjectPath}`);
|
|
||||||
const unityLicensingServer = (0, core_1.getInput)('unityLicensingServer') || '';
|
const unityLicensingServer = (0, core_1.getInput)('unityLicensingServer') || '';
|
||||||
const unityLicense = (0, core_1.getInput)('unityLicense') || ((_a = process.env['UNITY_LICENSE']) !== null && _a !== void 0 ? _a : '');
|
const unityLicense = (0, core_1.getInput)('unityLicense') || ((_a = process.env['UNITY_LICENSE']) !== null && _a !== void 0 ? _a : '');
|
||||||
let unitySerial = (_b = process.env['UNITY_SERIAL']) !== null && _b !== void 0 ? _b : '';
|
let unitySerial = (_b = process.env['UNITY_SERIAL']) !== null && _b !== void 0 ? _b : '';
|
||||||
|
@ -758,7 +758,6 @@ class Input {
|
||||||
// for input validation
|
// for input validation
|
||||||
const packageMode = rawPackageMode === 'true';
|
const packageMode = rawPackageMode === 'true';
|
||||||
const projectPath = rawProjectPath.replace(/\/$/, '');
|
const projectPath = rawProjectPath.replace(/\/$/, '');
|
||||||
core.info(`projectPath: ${projectPath}`);
|
|
||||||
// if in package mode, attempt to get the package's name, and ensure tests are present
|
// if in package mode, attempt to get the package's name, and ensure tests are present
|
||||||
if (packageMode) {
|
if (packageMode) {
|
||||||
if (unityVersion === 'auto') {
|
if (unityVersion === 'auto') {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -81,6 +81,7 @@ const Docker = {
|
||||||
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
|
||||||
--env GIT_CONFIG_EXTENSIONS \
|
--env GIT_CONFIG_EXTENSIONS \
|
||||||
--env TEST_PLATFORMS="${testPlatforms}" \
|
--env TEST_PLATFORMS="${testPlatforms}" \
|
||||||
|
--env GITHUB_WORKSPACE="/github/workspace" \
|
||||||
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
|
||||||
--volume "${githubHome}:/root:z" \
|
--volume "${githubHome}:/root:z" \
|
||||||
--volume "${githubWorkflow}:/github/workflow:z" \
|
--volume "${githubWorkflow}:/github/workflow:z" \
|
||||||
|
|
|
@ -86,7 +86,6 @@ class Input {
|
||||||
const unityVersion = getInput('unityVersion') || 'auto';
|
const unityVersion = getInput('unityVersion') || 'auto';
|
||||||
const customImage = getInput('customImage') || '';
|
const customImage = getInput('customImage') || '';
|
||||||
const rawProjectPath = getInput('projectPath') || '.';
|
const rawProjectPath = getInput('projectPath') || '.';
|
||||||
core.info(`rawProjectPath: ${rawProjectPath}`);
|
|
||||||
const unityLicensingServer = getInput('unityLicensingServer') || '';
|
const unityLicensingServer = getInput('unityLicensingServer') || '';
|
||||||
const unityLicense = getInput('unityLicense') || (process.env['UNITY_LICENSE'] ?? '');
|
const unityLicense = getInput('unityLicense') || (process.env['UNITY_LICENSE'] ?? '');
|
||||||
let unitySerial = process.env['UNITY_SERIAL'] ?? '';
|
let unitySerial = process.env['UNITY_SERIAL'] ?? '';
|
||||||
|
@ -161,7 +160,7 @@ class Input {
|
||||||
// for input validation
|
// for input validation
|
||||||
const packageMode = rawPackageMode === 'true';
|
const packageMode = rawPackageMode === 'true';
|
||||||
const projectPath = rawProjectPath.replace(/\/$/, '');
|
const projectPath = rawProjectPath.replace(/\/$/, '');
|
||||||
core.info(`projectPath: ${projectPath}`);
|
|
||||||
// if in package mode, attempt to get the package's name, and ensure tests are present
|
// if in package mode, attempt to get the package's name, and ensure tests are present
|
||||||
if (packageMode) {
|
if (packageMode) {
|
||||||
if (unityVersion === 'auto') {
|
if (unityVersion === 'auto') {
|
||||||
|
|
Loading…
Reference in New Issue