Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
- fix `project-path` with whitespace
  • Loading branch information
StephenHodgson authored Sep 17, 2024
1 parent ec5fcdb commit 12297d3
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:
name: Create Test Project
with:
log-name: 'create-test-project'
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/TestProject" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/Test Project" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
- run: 'openupm add com.utilities.buildpipeline'
name: Add Build Pipeline Package
working-directory: ${{ github.workspace }}/TestProject
working-directory: ${{ github.workspace }}/Test Project
- uses: ./ # RageAgainstThePixel/unity-action
name: '${{ matrix.build-target }}-Build'
with:
project-path: ${{ github.workspace }}/TestProject
project-path: ${{ github.workspace }}/Test Project
log-name: '${{ matrix.build-target }}-Build'
build-target: '${{ matrix.build-target }}'
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity'
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26205,7 +26205,7 @@ async function ValidateInputs() {
}
await fs.promises.access(projectPath, fs.constants.R_OK);
core.debug(`Unity Project Path:\n > "${projectPath}"`);
args.push(`-projectPath`, projectPath);
args.push(`-projectPath`, `"${projectPath}"`);
}
if (!inputArgs.includes(`-logFile`)) {
const logsDirectory = projectPath !== undefined
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "unity-action",
"version": "1.0.2",
"version": "1.0.3",
"description": "A Github Action to execute Unity Editor command line arguments.",
"author": "RageAgainstThePixel",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion src/inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async function ValidateInputs(): Promise<[string, string[]]> {
}
await fs.promises.access(projectPath, fs.constants.R_OK);
core.debug(`Unity Project Path:\n > "${projectPath}"`);
args.push(`-projectPath`, projectPath);
args.push(`-projectPath`, `"${projectPath}"`);
}
if (!inputArgs.includes(`-logFile`)) {
const logsDirectory = projectPath !== undefined
Expand Down

0 comments on commit 12297d3

Please sign in to comment.