Skip to content

Commit efbfa70

Browse files
unity-action@v1.0.3 (#4)
- fix `project-path` with whitespace
1 parent d0bdf2c commit efbfa70

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

.github/workflows/validate.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ jobs:
6262
name: Create Test Project
6363
with:
6464
log-name: 'create-test-project'
65-
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/TestProject" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
65+
args: '-quit -nographics -batchmode -createProject "${{ github.workspace }}/Test Project" -cloneFromTemplate "${{ env.TEMPLATE_PATH }}"'
6666
- run: 'openupm add com.utilities.buildpipeline'
6767
name: Add Build Pipeline Package
68-
working-directory: ${{ github.workspace }}/TestProject
68+
working-directory: ${{ github.workspace }}/Test Project
6969
- uses: ./ # buildalon/unity-action
7070
name: '${{ matrix.build-target }}-Build'
7171
with:
72-
project-path: ${{ github.workspace }}/TestProject
72+
project-path: ${{ github.workspace }}/Test Project
7373
log-name: '${{ matrix.build-target }}-Build'
7474
build-target: '${{ matrix.build-target }}'
7575
args: '-quit -nographics -batchmode -executeMethod Utilities.Editor.BuildPipeline.UnityPlayerBuildTools.StartCommandLineBuild -sceneList Assets/Scenes/SampleScene.unity'

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26205,7 +26205,7 @@ async function ValidateInputs() {
2620526205
}
2620626206
await fs.promises.access(projectPath, fs.constants.R_OK);
2620726207
core.debug(`Unity Project Path:\n > "${projectPath}"`);
26208-
args.push(`-projectPath`, projectPath);
26208+
args.push(`-projectPath`, `"${projectPath}"`);
2620926209
}
2621026210
if (!inputArgs.includes(`-logFile`)) {
2621126211
const logsDirectory = projectPath !== undefined

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "unity-action",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A Github Action to execute Unity Editor command line arguments.",
55
"author": "buildalon",
66
"repository": {

src/inputs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ async function ValidateInputs(): Promise<[string, string[]]> {
5252
}
5353
await fs.promises.access(projectPath, fs.constants.R_OK);
5454
core.debug(`Unity Project Path:\n > "${projectPath}"`);
55-
args.push(`-projectPath`, projectPath);
55+
args.push(`-projectPath`, `"${projectPath}"`);
5656
}
5757
if (!inputArgs.includes(`-logFile`)) {
5858
const logsDirectory = projectPath !== undefined

0 commit comments

Comments
 (0)