Skip to content

Commit

Permalink
Fix missing env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKahr committed Dec 11, 2023
1 parent 40ad68f commit 8d0083f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/model/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const Docker = {
${ImageEnvironmentFactory.getEnvVarString(parameters)} \
--env GIT_CONFIG_EXTENSIONS \
--env TEST_PLATFORMS="${testPlatforms}" \
--env GITHUB_WORKSPACE="/github/workspace" \
${sshAgent ? '--env SSH_AUTH_SOCK=/ssh-agent' : ''} \
--volume "${githubHome}:/root:z" \
--volume "${githubWorkflow}:/github/workflow:z" \
Expand Down
3 changes: 1 addition & 2 deletions src/model/input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ class Input {
const unityVersion = getInput('unityVersion') || 'auto';
const customImage = getInput('customImage') || '';
const rawProjectPath = getInput('projectPath') || '.';
core.info(`rawProjectPath: ${rawProjectPath}`);
const unityLicensingServer = getInput('unityLicensingServer') || '';
const unityLicense = getInput('unityLicense') || (process.env['UNITY_LICENSE'] ?? '');
let unitySerial = process.env['UNITY_SERIAL'] ?? '';
Expand Down Expand Up @@ -161,7 +160,7 @@ class Input {
// for input validation
const packageMode = rawPackageMode === 'true';
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 (packageMode) {
if (unityVersion === 'auto') {
Expand Down

0 comments on commit 8d0083f

Please sign in to comment.