Skip to content

Commit e8270c8

Browse files
committed
Fix ci
1 parent 791b5e1 commit e8270c8

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: 'Setup Unity Project'
1+
name: 'Create Unity Project'
22

33
inputs:
44
unityVersion:
55
required: true
6-
projectPath:
6+
projectDirectory:
77
required: false
88
default: ''
99
manifest:
@@ -13,20 +13,20 @@ runs:
1313
steps:
1414
# Unityプロジェクトを配置
1515
- name: Create directory
16-
if: ${{ inputs.projectPath != '' }}
17-
run: mkdir -p ${{ inputs.projectPath }}
16+
if: ${{ inputs.projectDirectory != '' }}
17+
run: mkdir -p ${{ inputs.projectDirectory }}
1818
shell: bash
1919
- name: Create minimal project contents
20-
working-directory: ${{ inputs.projectPath }}
20+
working-directory: ${{ inputs.projectDirectory }}
2121
run: |
2222
mkdir Assets
2323
mkdir Packages
2424
mkdir ProjectSettings
2525
echo "m_EditorVersion: ${{ inputs.unityVersion }}" > ProjectSettings/ProjectVersion.txt
2626
shell: bash
2727
- name: Create manifest.json
28+
working-directory: ${{ inputs.projectDirectory }}
2829
uses: jsdaniell/create-json@v1.2.3
29-
working-directory: ${{ inputs.projectPath }}
3030
with:
3131
name: "Packages/manifest.json"
3232
json: ${{ inputs.manifest }}

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
if: needs.config.outputs.config_package == 'true'
3535
steps:
3636

37-
# Setup Unity project
38-
- name: Setup Unity project
39-
uses: ./github/actions/setup-unity-project
37+
# Create Unity project
38+
- name: Create Unity project
39+
uses: ./github/actions/create-unity-project
4040
with:
4141
unityVersion: 2022.3.22f1
4242
manifest: "{}"
4343

4444
# Checkout Local Repository
4545
- name: Checkout
46-
uses: actions/checkout@v4
4746
working-directory: ${{ env.packagePath }}
47+
uses: actions/checkout@v4
4848

4949
# Get the Package version based on the package.json file
5050
- name: Get Version

.github/workflows/run-tests.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@ jobs:
2626
- editmode
2727
- standalone
2828
steps:
29-
- name: Setup package testing project
30-
uses: ./github/actions/setup-unity-project
29+
- name: Create package testing project
30+
uses: ./github/actions/create-unity-project
3131
with:
32+
projectDirectory: ${{ env.PROJECT_DIRECTORY }}
3233
unityVersion: ${{ matrix.unityVersion }}
3334
manifest: "{}"
3435
- name: Checkout repository
35-
uses: actions/checkout@v4
3636
working-directory: ${{ env.PACKAGE_DIRECTORY }}
37+
uses: actions/checkout@v4
3738

3839
- name: Create LFS file list
39-
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
4040
working-directory: ${{ env.PACKAGE_DIRECTORY }}
41+
run: git lfs ls-files -l | cut -d' ' -f1 | sort > .lfs-assets-id
4142

4243
- name: Restore LFS cache
4344
uses: actions/cache@v3

0 commit comments

Comments
 (0)